Well, this probably has relation with whether or not the register_globals has been turned off. You can check this at php.ini file.
In PHP 4, register_globals is turned off by default. So, you have to turn it on! However, you somehow compromise the application security.
If it is turned off. You have to accessed the posted variables this way:
<form action="<?$PHP_SELF?>" METHOD="post">
User:
<INPUT TYPE=TEXT NAME="login" SIZE=20>
Password:
<INPUT TYPE=TEXT NAME="pass" SIZE=20>
<INPUT TYPE="SUBMIT" VALUE="Login">
</FORM>
<?php
echo "Login: $HTTP_POST_VARS["login"]<BR>";
echo "Pass: $HTTP_POST_VARS["pass"] <BR>";
?>
As you can see, you have to use $HTTP_POST_VARS["name of the field"]
For cookie, you use $HTTP_COOKIE_VARS and for get method, use $HTTP_GET_VARS.
Hope it helps.
For more detail info, check the PHP documentation.
scoppc
"May All Beings Live In Happiness"