corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Any one know html or php


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Any one know html or php
Jodi_the_g
Member

Registered: 7th Aug 01
Location: Washington D.C
User status: Offline
16th Jan 05 at 13:11   View User's Profile U2U Member Reply With Quote

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
16th Jan 05 at 14:17   View User's Profile U2U Member Reply With Quote

What error are you getting exactly?
James_DT
Member

Registered: 9th Apr 04
Location: Cambridgeshire
User status: Offline
16th Jan 05 at 15:39   View User's Profile U2U Member Reply With Quote

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
16th Jan 05 at 16:38   View User's Profile U2U Member Reply With Quote

yeah every other code works which is a similar set up, i reckon i missed a : or . of something just can't see where

 
New Topic

New Poll

Corsa Sport » Message Board » Off Day » Any one know html or php 24 database queries in 0.0112741 seconds