I got the mail form blues! HTML/POST/mail() question - Also request for style suggestions
| From: | Monique Verrier | Date: | Fri, 17 Dec 2004 04:02:42 +0000 |
| Subject: | I got the mail form blues! HTML/POST/mail() question - Also request for style suggestions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-204556@lists.php.net to get a copy of this message | ||
Hi!
I have an html string stored in $message. I "submit" the form to a
subroutine and the value in $message is lost. All the other variables come
into feedback.php just fine. I would love any help. This is a new language
for me so any suggestions for streamlining my code would also be much
appreciated. Thanks -- Monique.
Here's my code:
<?php
$message=getmsg($message,$recemail,$sendername,$mailmessage,$rsList,$rname);
mysql_free_result($rsList);
echo $message; // this displays perfectly
?>
<form name="maillist" method="post" action="<?php echo
"feedback.php";
?>">
<div align="right">
<input name="email" type="hidden" value="<?php echo $email;
?>">
<input type="hidden" name="recipient" value="<?php echo
$recipient; ?>">
<input type="hidden" name="redirect" value="<?php echo $redirect;
?>">
<input type="hidden" name="name" value="<?php echo $rname;
?>">
<input type="hidden" name="env_report" value="on">
<input type="hidden" name="message" value="<?php $message;
?>">
<input type="hidden" name="subject" size="40"
value="<?php echo
$subject; ?>" class="form">
<input type="hidden" name="required"
value="Name,Email,Subject,Updates,Message">
</div>
<div align="right">
<input type="submit" name="Submit" value="Send!">
</div>
</form>