Re: Authentication fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> 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: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux