...

View Full Version : form help please



bufhal
06-22-2006, 01:09 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 PHP page below, thankyou.php. I need the results of these fields to go to a Lotus email database called mkt as well.
Can someone show me how to post to the email account with the working code below?

I appreciate any help.


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

Fumigator
06-22-2006, 04:42 PM
Try the mail() function:

http://us3.php.net/manual/en/function.mail.php

bufhal
06-23-2006, 12:54 PM
I know I need to concatenate thhe fields into a string and assign that string to the message portion of the mail function, but I am at a loss on how to do that. Can you offer an example with my posted code?

It would be greatly appreciated...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum