Here is the html form:
<form action="process.php" method="post">
<label> Enter Email:</label><input type="text" name="email"/>
</form>
Here is the php:
<?
$email=$_POST['email'];
mysql_connect("localhost", "root", "password" ) or die(mysql_error());
mysql_select_db("data") or die(mysql_error());
mysql_query("INSERT INTO `data` VALUES ('$email')");
?>
What am I doing wrong?