nowandever29
MIS
Duhhhhhh...can you help someone trying to learn PHP?
I've got an HTML page:
<html>
<head>
<title>Test Form</title>
</head>
<body>
<form method="get" action="formresult.php">
Enter the stuff:
<input name="mytext1" type="text">
<input type="submit">
</form>
</body>
</html>
Feeding a php page:
<html>
<head>
<title>Form Result</title>
</head>
<body>
<?php
echo $mytext1;
?>
</body>
</html>
When I run it, I get:
Notice: Undefined variable: mytext1 in c:\inetpub\ on line 7
PHP is running, but for some reason the php page is not taking in the form variable??? GET and POST get the same results.
Thanks!
- Nowandever29
I've got an HTML page:
<html>
<head>
<title>Test Form</title>
</head>
<body>
<form method="get" action="formresult.php">
Enter the stuff:
<input name="mytext1" type="text">
<input type="submit">
</form>
</body>
</html>
Feeding a php page:
<html>
<head>
<title>Form Result</title>
</head>
<body>
<?php
echo $mytext1;
?>
</body>
</html>
When I run it, I get:
Notice: Undefined variable: mytext1 in c:\inetpub\ on line 7
PHP is running, but for some reason the php page is not taking in the form variable??? GET and POST get the same results.
Thanks!
- Nowandever29