bufhal Posted June 23, 2006 Share Posted June 23, 2006 Hi,Hope someone can offer a bit of assistance.I have a contact.html form page which posts the filled in fields to the page below, thankyou.php. I need the results to go to a Lotus email database called mkt as well.I know I need to concatenate these fields into a string and assign that string to the message portion of the mail function, but I am at a loss.Can someone show me how to post the results to the email account with the working code below? I appreciate any help.here is the post section of contactform:<form action="cgi-bin/mailme.pl" method="post" name="contactform" id="contactform"><input type="hidden" name="recipient" value="contactform" /><input type="hidden" name="subject" value="Response from Web Form" /> thankyou.php:<?phpsession_cache_limiter('nocache'); session_start();include "subs.php";Print_header ("Get Password","",0);?><br><center><h1>Thank You!</h1></center><br><TABLE border="0" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0"><TR><TD width=600><BR><BR><b></b><center><? echo $_POST['Realname'];?><br> <?echo $_POST['Username'];?><br><?echo $_POST['Title'];?><br> <?echo $_POST['Company']; ?><br><?echo $_POST['Dept']; ?><br><?echo $_POST['Address']; ?><br><?echo $_POST['City']; ?><br><?echo $_POST['Zip/Postal Code']; ?><br><?echo $_POST['Phone']; ?><br><?echo $_POST['Fax']; ?><br></center></b></TD></TR></TABLE><?Print_footer ();?> Link to comment https://forums.phpfreaks.com/topic/12720-need-form-results-to-go-to-mail-db/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.