On Fri, 17 Dec 2004 14:32, 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; ?>"> I think if you were to actually echo $message here, it should display in the hidden field as you expect, and hence be passed as part of the form data to the target script. > <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> -- David Robley A cat is the universe's way of showing us perfection. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php