Re: Mailing all the elements of a form
| From: | B.C. Lance | Date: | Sun, 07 Jul 2002 05:52:32 +0000 |
| Subject: | Re: Mailing all the elements of a form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-105930@lists.php.net to get a copy of this message | ||
you could loop through $_POST (assuming you are using a post action) to extract the value out.
e.g.
$arr = array_keys($_POST);
for ($i = 0; $i < count($arr); $i++) {
$msg.= "{$arr[$i]}: {$_POST[$arr[$i]]}\r\n";
}
echo $msg;
b.c. lance
Jeremy Bowen wrote:
Hey, I have looked in PHP manual but I cannot seem to find what I am looking for. I have a very large form that I need to be able to mail. I just don't want to have to code all of the field into my mail() function. Thanks, Jeremy