Re: What variable are being sent to my script?
| From: | Johannes Janson | Date: | Fri, 13 Apr 2001 09:35:12 +0000 |
| Subject: | Re: What variable are being sent to my script? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48426@lists.php.net to get a copy of this message | ||
"Brandon Orther" <orther@webintellects.com> schrieb im Newsbeitrag
news:OMEBIHJGKOODOFLBFDJFIEEMCCAA.orther@webintellects.com...
> Hello,
>
> I there a way for me to find out what variables are being sent to script?
> Example:
>
> http://www.myscript.com/myscript.php?var1=asdf&var2=asdf
>
> that above would be $var1 and $var2
>
if it is a form with post as method you can use this script to
see all submitted vars:
while (list($key, $value)=each($HTTP_POST_VARS) ) {
echo "$key = $value <br>";
}
Johannes