Hello!
I have been viewing others posts and trying it on my own ..however I keep getting an error..
The plan is to have the order submit page send the info to my email and then redirect to a page where they can pay via paypal.
here is the script( I've copied and pasted and think I made an error playing with it!
<HTML>
<HEAD>
<TITLE>Please be patient while we transfer you to checkout to complete your order</TITLE>
<META HTTP-EQUIV="Refresh" Content="0;www.nationwidemovingpros.com/thank_you.html">
<?PHP
</HEAD>
<BODY>
<H2>Thank You..WE Are Happy To Be Servicing You!!</H2>
$email = $HTTP_POST_VARS[email];
$mailto = "order@nationwidemovingpros.com";
$mailsubj = "NEW ORDER";
$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>
?>
</BODY>
</HTML>
The order page is www.nationwidemovingpros.com/order.html
it should be redirected to www.nationwidemovingpros.com/thank_you.html
Also I am not getting any info when the form is submitted..I checked the text box properties..to my knowledge they are all titled...
Any help would be great!!!
I have been viewing others posts and trying it on my own ..however I keep getting an error..
The plan is to have the order submit page send the info to my email and then redirect to a page where they can pay via paypal.
here is the script( I've copied and pasted and think I made an error playing with it!
<HTML>
<HEAD>
<TITLE>Please be patient while we transfer you to checkout to complete your order</TITLE>
<META HTTP-EQUIV="Refresh" Content="0;www.nationwidemovingpros.com/thank_you.html">
<?PHP
</HEAD>
<BODY>
<H2>Thank You..WE Are Happy To Be Servicing You!!</H2>
$email = $HTTP_POST_VARS[email];
$mailto = "order@nationwidemovingpros.com";
$mailsubj = "NEW ORDER";
$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>
?>
</BODY>
</HTML>
The order page is www.nationwidemovingpros.com/order.html
it should be redirected to www.nationwidemovingpros.com/thank_you.html
Also I am not getting any info when the form is submitted..I checked the text box properties..to my knowledge they are all titled...
Any help would be great!!!
Comment