Re: switch and register_globals.
| From: | Stuart Dallas | Date: | Tue, 14 May 2002 14:54:42 +0000 |
| Subject: | Re: switch and register_globals. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97540@lists.php.net to get a copy of this message | ||
Gerard Samuel <gsam@trini0.org> wrote:
> With register_globals off, switch() has a little handicap.
> ie
> switch($foo)
> {
> ....
> break;
> }
>
> $foo, is now illegal/not set.
Why can't you just use switch($_POST['foo'])? Or did I leave my brain at
home today?
--
Stuart