email“);
error_reporting(0);
//Get next meeting id
$select = ‘SELECT id FROM cbcb_forum WHERE date>=CURDATE() AND cancel=0 LIMIT 1’;
$result = mysql_query($select, $connection);
$row = mysql_fetch_assoc($result);
$meeting=$row[‘id’];
if(($name & $email & $topic) != null) {
$addData = sprintf(“INSERT INTO cbcb_forum_topics SET name = ‘%s’, email = ‘%s’, topic = ‘%s’, description = ‘%s’, meeting = ‘%s'”, mysql_real_escape_string($name), mysql_real_escape_string($email), mysql_real_escape_string($topic), mysql_real_escape_string($description), mysql_real_escape_string($meeting));
$result = mysql_query($addData);
if ($result) {
$confMessage = “
Thank You. Your topic has been submitted and will be posted once approved by a moderator.
“;
echo “
“.$confMessage.”
“;
//Send an email to confirm registration
$headers = ‘From: help@bioinformatics.udel.edu’ . “\r\n” .
‘Reply-To: help@bioinformatics.udel.edu’ . “\r\n” .
‘X-Mailer: PHP/’ . phpversion();
mail(‘polson@dbi.udel.edu’, ‘FORUM TOPIC’, “$name <$email>\nTOPIC: $topic\nDESCRIPTION: $description\nMEETING: $meeting\n”,$headers);
}
else
{
echo “Error!”;
}
}
echo ”
Forum Topic Submission
“;
?>