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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.