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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux