The following isn't working, and I'm not sure why.
I've got a basic form to add email addresses
<html>
<head><title>Do Not Email</title></head>
<body>
****<form action="donotemailphp.php" method="POST">
Enter your email address to take your name off the list.<br><br>
<input type="text" name="email" size="30">
<p><input type="submit" name="submit" value="Submit"></p>
</form>
</body>
</html>
and the donotemailphp.php file
<?
include_once('/usr/home/fss/websites/fivestarsports.net/inc/func.inc.php');
$db_conn = five_connect_db();
mysql_select_db('fivestar',$db_conn);
$sql = "INSERT INTO donotemail(email) VALUES ('', '$_POST[email]')";
if (mysql_query($sql, $db_conn)) {
echo "record added!";
}else{
echo "something went wrong in database communication";
}
?>
Does anyone see anything wrong? I'm still a newb by the way.
Thanks.