Dear Forum,
Good day. How is everyone doing? I recently downloaded PHP 4.3.0 for Windows; I believe it's the CGI flavour of the application. I'm running it on XP with IIS. It installed OK and seems to work for the initial tests I did on it just to make sure it was actually preprocessing. However, it doesn't pass variable data between forms. I created a test form file called "testvar1" (in .php and html formats) with the following pertinent attributes:
<form action="testvar2.php" method="post">
<b>Name: </b><input type="text" name="name"><br><br>
<input type="submit" name="submit" value="sign">
</form>
And the testvar2.php file with the following attributes
<?php
echo "Name: $name<br>\n";
?>
But when I click submit on the first file (testvar1.php), it gives me the following error:
Notice: Undefined variable: name in C:\inetpub\wwwroot\php\testvar2.php on line 3
I would really like to know what the problem is. Thanks a lot for your anticipated response.
Charles E. O. Ugwuh