Hi, I installed the new PHP version today and are having troubles with it.
I installed the binary package for IIS, and initially it seems to be working properlly.
Now I'm having trouble with forms. I can not work out what is wrong, but it must be some sort of a configuration error I'm sure.
Here's the problem:
If I write a PHP script like so:
<form method="post" action="/script.php">
<input type="submit" value="submit">
</form>
where 'script.php' is the name of the scipt (it submits to itself), it works fine.
If I pass a variable as a parameter in the query string that's cool too:
<form method="post" action="/script.php?op=login">
<input type="submit" value="submit">
</form>
but I get the dreaded CGI error:
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
if I try and pass any form elements in the script:
<form method="post" action="/script.php?op=login">
<input type="text" name="username" value="username"><br>
<input type="password" name="username"><br>
<input type="submit" value="submit">
</form>
BUT... if I change the method to GET, instead of POST, it works fine!
What is this@!@!? It's driving me nuts. I've read through countless threads in the forums here to no avail. I don't want to use GET, I want POST, and I don't see why it wouldn't work...
There's no form processing, or any syntax errors that could be causing the problem... it must be some sort of php configuration error surely.... but what? I can't find it anywhere.
This is so bizarre...
If anyone could shead some light on this for me, I would be very grateful.
Thank you,
- Adam 🙂