Hi there
I'm having a problem with a script.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="en-gb" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thank You for your order!</title>
<style type="text/css">
.style1 {
text-align: center;
}
.style2 {
font-size: x-large;
font-family: Arial, Helvetica, sans-serif;
color: #000080;
}
.style3 {
text-align: center;
font-family: Arial, Helvetica, sans-serif;
color: #000080;
}
</style>
</head>
<body>
<script language="php">
$email = $POST[email];
$mailto = "emailme@youknowwhere.com";
$mailsubj = "Order from xxxx";
$mailhead = "From: xxxx\n";
reset ($HTTP_POST_VARS);
$mailbody = "Order from xxxx:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
</script>
<p class="style1"><span class="style2"><strong>Thanks for your order!</strong></span></p>
<p class="style1"> </p>
<p class="style3"><strong>Sit back relax and your meal will be with you in
45-60mins</strong></p>
<p class="style3"> </p>
<p class="style3"><strong>Any problems give the store a call: 01772 888 888</strong></p>
</body>
</html>
Basically its going to allow people to order food via my website for a takeaway.
However upon testing the script its sending me the entire list of items with numbers next to the items that have been ordered...everything else on the form is fine, total amount, delivery details etc...thats perfect.
I simply don't want to see my menu being emailed to me everytime someone orders food, plus having the entire menu emailed and having to work out whats been ordered is going to be a nightmare.
Like I said the rest of the form is fine and what we receive on testing.
The online working demo can be found here, http://www.kwipple.com - please feel free to use it etc to get to the thanks.php page where the script is taken from...it comes directly to me.
Your help is much appriciated.
Justin