Thread: Php Script
View Single Post
  #1  
Old 03-18-2006, 08:15 AM
CDBASE7211 CDBASE7211 is offline
Staff Sergeant
 
Join Date: Mar 2006
Posts: 46
Default Php Script

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

<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
<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!
Reply With Quote