RE: [PHP] dump $_POST into variables????

From: Date: Fri, 11 Jul 2003 05:24:54 +0000
Subject: RE: [PHP] dump $_POST into variables????
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-154829@lists.php.net to get a copy of this message
Ah... Jason.... Man Of Few Words! THANKs... You have saved me time and lines in my code :-) Cheers! Joe -----Original Message----- From: Jason Wong [mailto:php-general@gremlins.biz] Sent: Friday, July 11, 2003 1:13 AM To: php-general@lists.php.net Subject: Re: [PHP] dump $_POST into variables???? 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. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#154829) next »