Can any body tells me what's wrong with this script:
<?
$mailto = 'sales@ukath.com' ;
$formurl = "http://www.buildexamman.com/reg.html" ;
$errorurl = "http://www.buildexamman.com/error.html" ;
$thankyouurl = "http://www.buildexamman.com/thank.html" ;
$w = $POST['width'] ;
$h = $POST['height'] ;
$indoor = $POST['Indoor space only'] ;
$shell = $POST['Space plus shell scheme'] ;
$outdoor = $POST['Outdoor space only'] ;
$name = $POST['name'] ;
$company = $POST['company'] ;
$address = $POST['address'] ;
$telone = $POST['tel1'] ;
$teltwo = $POST['tel2'] ;
$fax = $POST['fax'] ;
$email = $POST['email'] ;
$activity = $_POST['Company activity'] ;
$http_referrer = getenv( "HTTP_REFERER" );
if (!isset($_POST['email'])) {
header( "Location: $formurl" );
exit ;
}
if (empty($w) || empty($h) || empty($name)|| empty($company) || empty($telone) || empty($email)) {
header( "Location: $errorurl" );
exit ;
}
$messageproper =
"This message was sent from:\n" .
"$http_referrer\n" .
"------------------------- COMMENTS -------------------------\n\n" .
$comments .
"\n\n------------------------------------------------------------\n" ;
mail($mailto, "Registration for Buildex", $messageproper, "From: \"$name\" <$email>\nReply-To: \"$name\" <$email>\nX-Mailer: chfeedback.php 2.0" );
header( "Location: $thankyouurl" );
exit ;
?>
You may find a sample at this link:
http://www.buildexamman.com/reg.html
Ghassan Yonis