RE: [PHP] Re: problem with code (almost fixed)
| From: | Noor Dawod | Date: | Tue, 19 Nov 2002 10:49:20 +0000 |
| Subject: | RE: [PHP] Re: problem with code (almost fixed) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125060@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Tularis [mailto:tularis@xmbforum.com]
> Sent: Tuesday, November 19, 2002 12:45 PM
> To: php-general@lists.php.net
> Subject: [PHP] Re: problem with code (almost fixed)
>
> first, change this: $_REQUEST['pac_hot[0]'] to:
> $_REQUEST["$pac_hot[0]"]
> a single quote ( ' ) disallows variable-matching, meaning it won't
> replace $var by what it should be, it just leaves it as it
> where a real
> character it should show.
>
> that should work on all your request array stuff.... hope
> this helps :)
>
That would not work if register_globals is not turned ON. Actually, if
it'd work, it's useless to use $_REQUEST as you already have the
variable available in the global space.
Noor