Re: dump $_POST into variables????

From: Date: Fri, 11 Jul 2003 05:12:54 +0000
Subject: Re: dump $_POST into variables????
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-154828@lists.php.net to get a copy of this message
On Friday 11 July 2003 13:01, Joe Harman wrote: > Okay, curious if there is an easier way to do this... here is what I do > > <?php > $ZipCode = $_POST['zip']; > $Distance = $_POST['distance']; > ?> > > can't I just dump these into an array and and assign it to a variable... > maybe that doesn't make sense... basically I just want to have one > command that retrives all the "POST" variables... then list my variables > ie $ZipCode, $Distance, $Blah - have them dump in to each!!! extract() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* I THINK THEY SHOULD CONTINUE the policy of not giving a Nobel Prize for paneling. -- Jack Handley, The New Mexican, 1988. */

« previous php.general (#154828) next »