Greetings,
I have set up PHP and MySQL on my machine for local development. Everything works fine, except for one thing. For some reason, I cannot get the scripts to pass variables from a form using post. I have uploaded the script to my server and it works fine so I am fairly certain the code is correct. I will include the code just in case below.
A bit about my OS:
Windows XP Pro - using IIS 5.1.
PHP 4.3.3
Everything else in PHP seems to function correctly with no problems, just not passing the variables. Here is the code. This is just a test script so it is very basic. It takes the variable (or is supposed to!) and passes it to database002.php
***database.php
<form action="database002.php" method=post>
<input type=text name="bookreq[emailaddy]" size=60> E-mail Address <br>
<input type=reset name="reset" value="Reset">
<input type=submit name="submit" value="Submit">
</form>
***database002.php
print ("$bookreq[emailaddy]<br>");
So when I run this script it runs without reporting an error but I get nothing printed. However, when I upload it to my domain host, the script works exactly as it is supposed to.
Is there possibly a setting, either in the php.ini file or in Windows I need to adjust? 😕
Any help would be greatly appreciated.
thanks!
-Alfta