View Full Version : Php $_post Empty In Iis 6?
08-21-2007, 03:07 AM
I installed PHP on IIS 6.0 - Everything was working fine until I tried to submit a form. The PHP $_POST super global is always empty.
I've checked to ensure that my form has method="post", and I don't think it's a coding error, since the same exact script is working fine on my other machine.
Does anyone know why this might be? Appreciate your expertise.
08-21-2007, 03:11 AM
Can you post your code including the form?
08-21-2007, 03:11 AM
Suggestion: Although you think it is not a coding error, you should post your script anyway. Makes it much easier for people to reply and help! :thumbsup:
EDIT: What Aero said!
08-21-2007, 03:15 AM
<form action="process.php" method="post">
<input type="text" name="name"><br /><br />
<input type="text" name="email"><br /><br />
<input type="submit" value="Submit">
Form Process Page:
The PHP page doesn't display any $_POST data. It only displays:
Array ( )
If I use $_GET instead of $_POST it works fine, and the same code works fine on my other development machine. Which leads me to believe it is a server/configuration issue? Any suggestions?
08-21-2007, 03:16 AM
Edit: ^^^^^ what they said...
You would need to post your code to get specific help. 99% of the problems of code working on one PHP system and not another are due to php configuration differences. The other 1% are due to PHP version or web server differences. If you post your code, someone might spot something it is doing that could be causing the problem.
08-21-2007, 03:23 AM
The only thing that comes to mind is if the post_max_size parameter is zero. I suspect that php cannot find any php.ini file to use.
Create a phpinfo.php file with the following code in it and browse to it -
?>Near the top of the resultant output are two lines related to the path for php.ini and the actual php.ini file that is getting used. What do they say? Also, search/scroll to find the post_max_size value. What is it?
Oh, and telling all the symptoms, such as it working using $_GET, is important from the get go.
08-21-2007, 03:27 AM
The configuration file it's using is C:/WINDOWS/php.ini
POST_MAX_SIZE is set to 32MB
Is there a specific ini setting that turns super globals off? I didn't think so, but that's what this appears to be... or something similiar...
Do I need to enable something from within IIS to allow for POST submissions?
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.