Grabbing ALL $_POST var at once.
| From: | David J Jackson | Date: | Mon, 06 May 2002 18:44:48 +0000 |
| Subject: | Grabbing ALL $_POST var at once. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-96301@lists.php.net to get a copy of this message | ||
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) ?>