pats
12-11-2002, 06:56 PM
Hi I am having a problem with the following php form:
<html>
<body>
<?
include("dbinfo.inc.php");
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "INSERT INTO email VALUES ('$firstname','$lastname','$company','$address1','$address2','$city','$state','$email','$interest1', '$interest2','$interest3','$interest4','$interest5','$interest6','$interest7')";
mysql_query($query);
mysql_close();
printf("<center><h3>OPT IN EMAIL LIST</h3><p><font size=-1>Thank you for taking the time to fill out the form. You will hear from us soon.");
?>
</body></html>
This is not writing into the MYSQL database.
The form is attached:
<html>
<body>
<?
include("dbinfo.inc.php");
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "INSERT INTO email VALUES ('$firstname','$lastname','$company','$address1','$address2','$city','$state','$email','$interest1', '$interest2','$interest3','$interest4','$interest5','$interest6','$interest7')";
mysql_query($query);
mysql_close();
printf("<center><h3>OPT IN EMAIL LIST</h3><p><font size=-1>Thank you for taking the time to fill out the form. You will hear from us soon.");
?>
</body></html>
This is not writing into the MYSQL database.
The form is attached: