error . “)”);
}
else
{
// Your code here to handle a successful verification
}
}
// Insert form data into table
$con = mysql_connect(“localhost”,”clucampa_CLU”,”caseypie4236″);
if (!$con)
{
die(‘Could not connect: ‘ . mysql_error());
}
mysql_select_db(“clucampa_CB”, $con);
$sql=”INSERT INTO todo (category,type,tName,tDates,tTimes,cost,url,userName, notes)
VALUES
(‘$_POST[category]’,’$_POST[type]’,’$_POST[tname]’,’$_POST[tdate]’,’$_POST[ttime]’,’$_POST[cost]’,’$_POST[url]’,’$_POST[username]’,’$_POST[note]’)”;
if (!mysql_query($sql,$con))
{
die(‘Error: ‘ . mysql_error());
}
mysql_close($con);
}
?>
Your activity has been submitted.
Thank you!
“;
echo “
Return to Activity Search“;
}
?>