streborr
IS-IT--Management
- Jan 16, 2002
- 98
I've decided to learn PHP as an alternative to ASP.
I can't seem to get even the simplist code to work.
When I submit the form, with me in the Username box, the result page always returns the "go away" result.
Thanks for any help!
here's the form:
here's the result page:
I can't seem to get even the simplist code to work.
When I submit the form, with me in the Username box, the result page always returns the "go away" result.
Thanks for any help!
here's the form:
Code:
<html>
<head>
<title>form page</title>
</head>
<body>
<FORM action="result.php" method="post">
Username: <input type="text" name="fname" />
<br />
<input type="submit" value="go" />
</FORM>
</body>
</html>
here's the result page:
Code:
<html>
<head>
<title>result page</title>
</head>
<body>
<?php
if ($_post['fname']=="me")
{ echo "hi me";
} else {
echo "go away";
}
?>
</body>
</html>