Re: GET data in URL
| From: | Richard Lynch | Date: | Wed, 03 Jul 2002 21:30:23 +0000 |
| Subject: | Re: GET data in URL | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-105309@lists.php.net to get a copy of this message | ||
>I just installed php 4.2.1 and i have a couple of URL's that pass variables
>through links (www.domain.com/index.php?test=123) and when I run that it
>comes up on the next page and the test variable is empty? I can't figure
>this out but if I had to guess I would think it's some setting in the
>php.ini?
Search for 'register_globals' in php.ini
Or, just use $_GET['test] instead of $test.
There's a ton of old code (sample and real) that will break with 4.2.1 because of this...
--
Like Music? http://l-i-e.com/artists.htm