Re: Grabbing ALL $_POST var at once.

From: Date: Mon, 06 May 2002 18:41:27 +0000
Subject: Re: Grabbing ALL $_POST var at once.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96302@lists.php.net to get a copy of this message
See either extract() or import_request_variables() in the manual. -Rasmus On Mon, 6 May 2002, David J Jackson wrote: > The code below works (but its ugly), but I know there has to be a why to > grab all the $_POST[] at once and then parse them out? > > Isn't there a why for me to access them directory without reassigning them? > > TIH, > David > > > <?php > $From = $_POST['from']; > $Two = $_POST['two']; > $Subject = $_POST['sub_ject']; > $Comments = $_POST['comments']; > echo "<b>$From</b>";print "\n"; > echo $Two;print "\n"; > echo $Subject;print"\n"; > echo $Comments;print "\n"; > ?> > <?php mail($Two,$Subject,$Comments) ?> > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#96302) next »