corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » php error


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 php error
Neo
Member

Registered: 20th Feb 07
Location: Essex
User status: Offline
16th Jan 08 at 11:01   View User's Profile U2U Member Reply With Quote

Can anyone see why this isn't working :

mail($mailto, $subject, $messageproper,
"From: \"$name\" <$email>" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.08" );
header( "Location: $thankyouurl" );
exit ;

The code doesn't go through this part, the rest seems to work, but this comes up when i submit the form.

Any idea's would be appreciated.
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
16th Jan 08 at 11:44   View Garage View User's Profile U2U Member Reply With Quote

do you get an error?
Neo
Member

Registered: 20th Feb 07
Location: Essex
User status: Offline
16th Jan 08 at 11:47   View User's Profile U2U Member Reply With Quote

I get :

" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.08" ); header( "Location: $thankyouurl" ); exit ;

Returned in the browser, it doesn't send the email and doesn't forward to the $thankyouurl

The whole document in valid and no errors or warnings found so i honestly can't work out why it isn't working.

[Edited on 16-01-2008 by Neo]
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
16th Jan 08 at 11:51   View Garage View User's Profile U2U Member Reply With Quote

its being output as html then.

is it in a pure php page or is it embedded in with html stuff?
Neo
Member

Registered: 20th Feb 07
Location: Essex
User status: Offline
16th Jan 08 at 11:54   View User's Profile U2U Member Reply With Quote

Its a form's php code - the page itself isn't php however looks at the php document for what to do.

The code itself is not on a html page
Laney
Member

Registered: 6th May 03
Location: Leeds
User status: Offline
16th Jan 08 at 11:58   View User's Profile U2U Member Reply With Quote

Looks like you haven't concatenated your variables?

"From: \"".$name."\" <".$email.">" . $headersep . "Reply-To: \"".$name."\" <".$email.">" . $headersep . "X-Mailer: chfeedback.php 2.08" );

?
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
16th Jan 08 at 11:59   View Garage View User's Profile U2U Member Reply With Quote

theres not an echo before that code in the php page?

if you email the html page with form and the php page to steve@stevejwilliams.co.uk il sort it out
Neo
Member

Registered: 20th Feb 07
Location: Essex
User status: Offline
16th Jan 08 at 12:13   View User's Profile U2U Member Reply With Quote

Sent
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
16th Jan 08 at 13:21   View Garage View User's Profile U2U Member Reply With Quote

the problem was in earlier bits of the code, a few errors
Neo
Member

Registered: 20th Feb 07
Location: Essex
User status: Offline
16th Jan 08 at 13:32   View User's Profile U2U Member Reply With Quote



Cheers for looking at it for me

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
XMB Message Board Sam General Chat 6 303
20th Jul 03 at 13:50
by Sam
 
New Website People weerab General Chat 9 872
13th Aug 06 at 21:19
by weerab
 
This is a pretty cool vx site and its free to join :D Rambo General Chat 17 863
25th Aug 06 at 20:09
by Sam
 
Anyone know PHP? Bit of help needed... liamC Geek Day 38 1429
24th Nov 06 at 23:02
by MarkPW
 
Dodgy HTML/PHP/Table problem liamC Geek Day 9 777
24th Jan 07 at 19:37
by liamC
 

Corsa Sport » Message Board » Off Day » Geek Day » php error 28 database queries in 0.0101109 seconds