code doesn't work
Posted: Sat Jan 02, 2010 7:49 pm
<html>
<head>
<title>A BASIC HTML FORM</title>
<?PHP
$username = $_POST['username'];
print ($username);
?>
</head>
<body>
<FORM NAME ="form1" METHOD ="POST" ACTION = "try2.php">
<INPUT TYPE = "TEXT" VALUE ="username" NAME ="username">
<INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Login">
</FORM>
</body>
</html>
this code suppose to print the word "username"
and in the line below- the input area and "login" button.
why it doesn't work?
thanks.
<head>
<title>A BASIC HTML FORM</title>
<?PHP
$username = $_POST['username'];
print ($username);
?>
</head>
<body>
<FORM NAME ="form1" METHOD ="POST" ACTION = "try2.php">
<INPUT TYPE = "TEXT" VALUE ="username" NAME ="username">
<INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Login">
</FORM>
</body>
</html>
this code suppose to print the word "username"
and in the line below- the input area and "login" button.
why it doesn't work?
thanks.