Location: PHPKode > projects > bloggeruniverse > process.php
<?php
ob_start();
session_start();
include ("includes/config.php");
require ("theme.php");
$page->settitle("Process Entry");
$page->output();
if($_POST[submit])
{
$name = htmlspecialchars($_POST[name], ENT_QUOTES);
$email = htmlspecialchars($_POST[email], ENT_QUOTES);
$url = htmlspecialchars($_POST[url], ENT_QUOTES);
$timestamp = $_POST[date];
$entry = $_POST[entry];
$comment = htmlspecialchars($_POST[comment], ENT_QUOTES);
$comment = strip_tags($comment);
$comment = nl2br($comment);
$category = mysql_real_escape_string($_POST[category]);

$result = mysql_query("INSERT INTO blog_comments (entry, timestamp, name, email, url, comment, category) VALUES ('$entry','$timestamp','$name','$email','$url','$comment', '$category')")
or print(mysql_error());

echo "<meta HTTP-EQUIV=\"REFRESH\" CONTENT=\"0; URL=index.php?id=$entry\">Commented Successfully Entered";
}
$content->output();
$close->output();
?>
Return current item: bloggeruniverse