Hello, The code below outputs the errors: Notice: Undefined index: submit in
login.php on line 19 Thanks, Adrian ?php echo " <form method=post action="" <br> <b>name:</b><br><input type=\"text\" name=\"name\"><br> <b>password:</b><br><input type=\"text\" name=\"password\"><br> <input type=\"submit\" name=\"submit\" value=\"Submit\"> "; $submit = $_POST['submit']; //line 19 $username = $_POST['username']; //line 20 $password = $_POST['password']; if ($submit) { $result=mysql_connect("localhost", $username, $password) or die("Invalid username or password"); //printf("Succesfully conected"); if ($result){ echo "<td><a href="">; } } ?> </body> </html> |
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php