Sending data to a script from a form
| From: | R Strang | Date: | Sun, 06 Oct 2002 22:42:15 +0000 |
| Subject: | Sending data to a script from a form | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-16211@lists.php.net to get a copy of this message | ||
hi im having problems with running PHP4 and MySQL on Windows 98 with PWS
im using this simple script to input an name and dysplay it on another page it was taken from a book
example but i get an error
PHP Notice: Undefined variable: user in c:\Inetpub\wwwroot\output.php on line 7 PHP
Notice:Undefined variable: address in c:\Inetpub\wwwroot\output.php on line 8
input.php
<html>
<head>
<title></title>
</head>
<body>
<form action="output.php" method="get">
<input type="text" name="user">
<br>
<textarea name="address rows="5" cols="40">
</textarea>
<br>
<input type="submit" value="hit it!">
</form>
</body>
</html>
output.php
<html>
<head>
<title></title>
</head>
<body>
<?php
print "welcome <b>$user</b><p>\n\n";
print "your address is:<p>\n\n<b>$address</b>";
?>
</body>
</html>