i’ve got a page with a form on it (just one input field)
<form method="POST" action="donotemailphp.php" target="_self">
Email Address <input type="text" name="email" size="30" />
<input type="submit" value="Submit" name="submit">
</form>
then here is the code on 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);
$address = ($_POST['email'];
$query = "INSERT INTO donotemail(email) VALUES ('$address')";
?>
I’m trying to get the email submitted to mySQL into a table named donotemail. When I go into phpMyAdmin to see if it was added, it seems nothing happened. (i can’t browse anything) also i don’t get any errors after submitting. How would I fix this, and also know that the email was submitted.
I know this is very elementree, but I’m learning.
Thanks in advance.