RE: [PHP] Vars passed via URL disappearing
| From: | David Freeman | Date: | Sat, 03 Aug 2002 00:46:55 +0000 |
| Subject: | RE: [PHP] Vars passed via URL disappearing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110904@lists.php.net to get a copy of this message | ||
> I just upgraded to PHP 4.2.2 and am trying to make my sites work with
> register_globals turned OFF. I notice, however, that with
> register_globals turned off any variables I pass via the URL don't
seem to be
> recognized by the script it was passed to.
> I thought register_globals only affected session, cookie and get type
> variables? Why is PHP ignoring the variables passed via the URL?
Variables passed via the URL are GET variables. In v4.2.2 you can use
$_GET['variable_name'] to access them.
CYA, Dave