Re: Authentication fails
| From: | Jason Barnett | Date: | Wed, 02 Mar 2005 14:22:53 +0000 |
| Subject: | Re: Authentication fails | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-209792@lists.php.net to get a copy of this message | ||
>
> I've got some more information and I hope someone can help me figure out
> the problem. I changed my original PHP program so that the form action
> script is a different script. In that file, I just do a var_dump on
> $_POST and $_SERVER.
>
> When I do that, it looks like all of the data comes through correctly.
Super.
>
> On the other hand, when the form action script is the *same* script that
> contains the form, when I do the same var_dumps, the data does *not*
> have any $_POST data. Also, the _SERVER[REQUEST_METHOD] is "GET", not
> "POST" in this instance.
My suspicion was that this was what had happened as well, but *why* your
POST is being interpreted as a GET is unclear to me. I did notice that
you were sending GET variables when you had a login error... but someone
more knowledgeable than I (Richard?) will likely come along and explain
how / why PHP can interpret a form with both POST and GET variables as a
GET script.
>
> So it appears that my problem is that when I post to the same script I
> am running, things don't work. I still have no idea why this would be
> the case. Does anyone have any ideas?
One other thing I noticed, but didn't quite understand. Your
apache2handler shows you are using port 0, but your SERVER_PORT is 80.
I don't understand the Apache side of things well enough to untangle
that one either.
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc