Sorry, this is a very touchy topic with me, but most of what i'm about to say can be summed up here:
http://php.net/manua....predefined.php
Matthew., on Sep 21 2006, 02:46 PM, said:
$_REQUEST and $_GET are basically the same, most use $_GET, and you cannot compare $_POST and $_GET. They server different purposes.
Wrong. To put what php.net has to say shortly: $_REQUEST = array_merge($_GET, $_POST, $_COOKIE);
$_REQUEST contains the values of all 3 of those superglobals, with the later overwriting the former.
$_GET and $_POST are infinately comparable as they:
1. Are both used in conjunction with forms, and
2. Are both superglobals.
They are a means of allowing the user to communicate with the server, typically through a form, as your average joe doesn't even know what that wierd crap in the url is, or what it does.
When ever i encounter scripts that use $_REQUEST i gag. It is way to variable, the value of it can be from a post, get, or cookie. The only way to tell which value it contains is by checking the variable_order ini setting (which can be changed).
For form info, i prefer to use post since you can enter wierd characters in a form that would have to be urlencoded, then decoded. But for simply switching between pages, or passing a little value on here and there (through a link for instance), get is best.
__________________________________
Now that that's out of the way, if your server is saying the variable is undefined, then you might not be sending the value to the server. It could be a case-sensativity problem, a spelling error, or any number of other things. They only way to tell is to post the code for your form, and for the login.
Edited by rc69, 22 September 2006 - 12:35 PM.