Jump to content


Photo

need form results to go to mail DB


  • Please log in to reply
No replies to this topic

#1 bufhal

bufhal
  • Members
  • PipPipPip
  • Advanced Member
  • 30 posts

Posted 23 June 2006 - 12:10 PM

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 ();
?>




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users