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) ?> > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php