Jump to content

need form results to go to mail DB


bufhal

Recommended Posts

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:
<?php
session_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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.