Re: Grabbing ALL $_POST var at once.

From: Date: Mon, 06 May 2002 18:45:43 +0000
Subject: Re: Grabbing ALL $_POST var at once.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96303@lists.php.net to get a copy of this message
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? They're just variables. You can print them or use them as function arguments... <? mail ($_GET['to'], $_GET['subject'], "Hey, {$_GET['comments']}") ?> miguel > <?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) ?> > > >

« previous php.general (#96303) next »