$mailto= "info@liwal.com";
$subject= "A Liwal product inquiry has been submitted";
$from= "liwal_product_enquiry@liwal.com";
$opening= "Liwal Product Enquiry form sent the following request:";
$footer= "*** End of the form ***";
$new_url= "http://www.liwal.com/computers/online_enquiry_reply.php";
if (isset($Name)){
if (!is_array($HTTP_POST_VARS)){
return;
reset($HTTP_POST_VARS);
}
while(list($key, $val) = each($HTTP_POST_VARS)) {
$GLOBALS[$key] = $val;
$val=stripslashes($val);
$content= $content."$key = $val\n";
}
$message= "$opening\n\n"."$content\n\n".$footer;
mail($mailto, $subject, $content, "From: $from");
if (isset($new_url)){
header ("Location: $new_url");
}
}
?>