Re: No text in form submission
| From: | Richard Lynch | Date: | Sun, 21 Jul 2002 21:16:20 +0000 |
| Subject: | Re: No text in form submission | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108761@lists.php.net to get a copy of this message | ||
>Been working on trying to get form submission to work.
>
>Now have it so when click enter it e-mails me, but there is no text
>subitted in the e-mail
>
>Any ideas?
><?
>$MailToAddress = "dean@email.com";
>$MailSubject = "Group volunteer list";
>if (!$MailFromAddress) {
> $MailFromAddress = "$email";
> }
>$Header = "";
>$Footer = "";
>
var_dump($_POST);
reset($_POST);
echo "_POST isset? ", isset($_POST), "<BR>\n";
>foreach($_POST as $key => $val)
> {
> $val = stripslashes($val);
> $Message .= "$key = $val\n";
> }
>
>if ($Header) {
>$Message = $Header."\n\n".$Message;
>}
>
>if ($Footer) {
>$Message .= "\n\n".$Footer;
>}
>
>mail($MailToAddress, $MailSubject, $Message, "From:
>{$MailFromAddress}"); ?>
>
--
Like Music? http://l-i-e.com/artists.htm