PDA

View Full Version : Php Script



CDBASE7211
03-18-2006, 07:15 AM
Hi

Here are 2 scripts I am using on my forms..I am still getting blank emails

Anyone Shed any light? I posted in forms but think it may have been the wrong place

1st
www.nationwidemovingpros.com/order.html (http://www.nationwidemovingpros.com/order.html)

<HTML>
<HEAD>
<TITLE>There is one more step until we process your order</TITLE>
</HEAD>
<BODY>
<H2>You are now being redirected to payment processing!</H2>
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "order@nationwidemovingpros.com";
$mailsubj = "From the OrderForm";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
</SCRIPT>
<META HTTP-EQUIV="Refresh" Content="0; URL=thank_you.html">
?>
</BODY>
</HTML>

2nd- www.nationwidemovingpros.com/contact.html (http://www.nationwidemovingpros.com/contact.html)
<HTML>
<HEAD>
<TITLE>CONTACT CONFIRMED</TITLE>
</HEAD>
<BODY>
<H2>ONE MOMENT PLEASE</H2>
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "info@nationwidemovingpros.com";
$mailsubj = "From the Contact Form";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
</SCRIPT>
<META HTTP-EQUIV="Refresh" Content="0; URL=contact_confirm.html">
?>
</BODY>
</HTML>

any insight would be greatly appreciated!

navaldesign
03-18-2006, 08:35 AM
Your answers are in the other thread you have also posted. Please do not make multiple posts on the same subject.