$email = $_POST['email']; echo $email; $link = md5($email); include("dbinfo.inc.php"); mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query = "INSERT INTO tests VALUES ($email,$link)"; mysql_query($query); mysql_close();
Is the problem the PHP code or the form? Here is the form.
<form action="signup.php" method="POST"> <input type="text" name="email" size="40"><br><br> <input type="submit" value="Start tricking your friends!"> </form>
I don't know what is wrong...
EDIT: I have deduced that it is the form. But whats wrong with the form?