On Mon, July 23, 2007 8:10 am, Daniel Brown wrote: > On 7/20/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> On Thu, July 19, 2007 8:33 am, Daniel Brown wrote: >> >> > extract($_POST); >> >> You might as well just turn register_globals back ON (bad!) because >> you've just done a work-around on $_POST that does exactly what >> register_globals ON does to $_POST... >> >> This is bad. >> >> Don't do this. >> >> ONLY extract the variables you EXPECT to see in POST. >> >> In this case there were only two variables anyway... >> [shrug]
> Yes, but keep in mind, it was a simple, cheap example just to get > it to work Out Of The Box(R). I sure as heck don't expect that code > to be used. It'll work, but it's.... well, it's ugly. Don't take this wrong, but... What are the odds the OP has any idea that extract() is ugly and shouldn't be used?... :-) -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php