Jodi_the_g
Member
Registered: 7th Aug 01
Location: Washington D.C
User status: Offline
|
please help i am missing something but can't find where as i get errors
the two files source code.
html file
<?
$mailto = 'jodimyatt@evolutiondevelopments.org.uk' ;
$subject = "Comptetion Form" ;
$formurl = "http://www.jodimyatt.co.uk/contact.htm" ;
$errorurl = "http://www.jodimyatt.co.uk/error.htm" ;
$thankyouurl = "http://www.jodimyatt.co.uk/thanka.htm" ;
$name = $_POST['name'] ;
$surname = $_POST['surname'] ;
$phone = $_POST['phone'] ;
$email = $_POST['email'] ;
$number = $_POST['number'] ;
$address1 = $_POST['address1'] ;
$address2 = $_POST['address2'] ;
$town = $_POST['town'] ;
$county = $_POST['county'] ;
$postcode = $_POST['postcode'] ;
$age = $_POST['age'] ;
$http_referrer = getenv( "HTTP_REFERER" );
if (!isset($_POST['email'])) {
header( "Location: $formurl" );
exit ;
}
if (empty($name) || empty($email) || empty($comments)) {
header( "Location: $errorurl" );
exit ;
}
if (get_magic_quotes_gpc()) {
$comments = stripslashes( $comments );
}
$messageproper = "Name: $name\nSurname: $surname\nPhone: $phone\nEmail: $email\nnumber: $number\naddress1: $address1\naddress2 $address2\ntown $town\ncounty $county\npostcode $postcode\nage $age";
"This message was sent from:\n" .
"$http_referrer\n" .
"------------------------- COMMENTS -------------------------\n\n" .
$comments .
"\n\n------------------------------------------------------------\n" ;
mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\nReply-To: \"$name\" <$email>\nX-Mailer: chfeedback.php 2.02" );
header( "Location: $thankyouurl" );
exit ;
?>
[Edited on 16-01-2005 by Jodi_the_g]
|
Laney
Member
Registered: 6th May 03
Location: Leeds
User status: Offline
|
What error are you getting exactly?
|
James_DT
Member
Registered: 9th Apr 04
Location: Cambridgeshire
User status: Offline
|
Have you got the web server setup to parse .HTM files as PHP?
|
Jodi_the_g
Member
Registered: 7th Aug 01
Location: Washington D.C
User status: Offline
|
yeah every other code works which is a similar set up, i reckon i missed a : or . of something just can't see where
|