Re: PHP 4.2.2 vs PHP 4.0.6
| From: | Steve Yates | Date: | Fri, 04 Oct 2002 06:15:36 +0000 |
| Subject: | Re: PHP 4.2.2 vs PHP 4.0.6 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118810@lists.php.net to get a copy of this message | ||
> From: Alex Shi [mailto:chpshi@eol.ca]
> 1. why PHP changed the way to access submitted vars;
Because if you use a hidden variable like $validuser='yes' inside your
script you probably forgot to check whether the user did this:
www.eol.ca/page.php?validuser=yes
> 2. any good suggestion to avoid this problem, such as that is it possible
> to configure 4.2.2 to compatible downward.
extract($HTTP_POST_VARS) will create all variables from that array.
- Steve Yates
- An unbreakable toy is only useful for breaking other toys.
~ Do you like my taglines? Add them to your messages and
~ laugh through hundreds more by downloading Taglinator
~ at www.srtware.com today!