I have created 2 very simple files ..but when i click on the submit button ,the second php file is not being referenced...
here's my code for the first file basic2Form.php
<html>
<head>
<title>A BASIC HTML FORM</title>
</head>
<body>
<Form name ="form1" Method ="POST" Action ="submitForm.php">
<INPUT TYPE = "TEXT" VALUE ="username" Name ="username">
<INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Login">
</FORM>
</body>
</html>
and the second one :
<?PHP
$username = $_POST['username'];
if ($username = = "letmein") {
print ("Welcome back, friend!");
}
else {
print ("You're not a member of this site");
}
?>
I am not sure why does it say "The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error."
Please help