Re: I got the mail form blues! HTML/POST/mail() question - Also request for style suggestions

From: Date: Fri, 17 Dec 2004 07:45:55 +0000
Subject: Re: I got the mail form blues! HTML/POST/mail() question - Also request for style suggestions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-204563@lists.php.net to get a copy of this message
On Dec 16, 2004, at 10:02 PM, Monique Verrier wrote:
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>
    <input type="hidden" name="message" value="<?php $message; ?>">
should be
    <input type="hidden" name="message" value="<?php echo $message; ?>">
-ryan -- http://theryanking.com/blog

« previous php.general (#204563) next »