Re: pass variable to PHP
| From: | Plutarck | Date: | Wed, 04 Apr 2001 04:30:03 +0000 |
| Subject: | Re: pass variable to PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-46969@lists.php.net to get a copy of this message | ||
Try using a print_r($HTTP_GET_VARS) and see what comes up.
It could be that PHP has been set not to turn GET/POST variables into
seperate values.
If so you'll need to use:
echo $HTTP_GET_VARS[testing];
--
Plutarck
Should be working on something...
...but forgot what it was.
""HK Woo"" <hkwoo@netvigator.com> wrote in message
news:9ae7ba$9n3$1@toye.p.sourceforge.net...
> Hi,
>
> I have written a html which contains a form and then I use a "GET" method
to
> pass a variable to PHP program with
> http://xxx.xxx.xxx.xxx/test.php?testing=testing. However, I
> can't get the
> variable testing by using "echo $testing".
>
> I don't know what is the problem.
>
> Thank You!
>
> HK Woo
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>