Hi, I am doing PHP Home & Learn Tutorial. I got to the lesson about forms. I keep getting this error:
PHP Notice: Undefined index: username in C:\inetpub\wwwroot\basicForm.php on line 7 .
This is the code :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>A BASIC HTML FORM</title>
<?PHP
$username = $_POST['username'];
print($username);
?>
</head>
<body>
<FORM NAME ="form1" METHOD ="POST" ACTION = "basicForm.php">
<INPUT TYPE = "TEXT" VALUE="username" NAME="username">
<INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Login">
</FORM>
</body>
</html>
It says to ignore the error message and click on submit or login in this case button.The problem is that the browser, IE9 just displays the error message, I cannot click the button because you cannot see it. if I don't fix this I will not be able to go ahead with the tutorial.Any idea? Thank you.


