Re: Re: Select and $_POST

From: Date: Thu, 10 Nov 2005 21:48:28 +0000
Subject: Re: Re: Select and $_POST
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-225557@lists.php.net to get a copy of this message
On Wed, November 9, 2005 7:15 pm, Chris Shiflett wrote: > Ben Ramsey wrote: >> $clean = array(); >> $sql = array(); Here's an idea... Quite possibly half-baked. Suppose PHP had a superglobal $_CLEAN which was an empty array. Further suppose it was documented in the manual as *the* place to put your scrubbed data. This rather small and hopefully inexpensive change (in terms of PHP Dev/Docs team work) would quite possibly improve scripts by newbies, simply by nudging them in the proper direction, because it would be a documented feature, and it would have all the nifty cross-links in the manual and all that. It would also help to keep code cleaner to have $_CLEAN be a superglobal rather than just something I made up and have to declare as "global" all the time. Comments? Suggestions? Derogatory remarks? PS What does Chris Shifflett use to validate an email? Enquiring minds want to know! :-) -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#225557) next »