script isn't diverting to correct ending location

the mail() function

Moderators: egami, macek, gesf

Post Reply
User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2192
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Thu Apr 21, 2011 6:12 am

That's because you're missing the TLD in your URL's..

riverrescue-tranning.com?
riverrescue-tranning.net?

you can't have www.riverrescue-tranning/website.php

It doesn't know the domain to look for.

User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2192
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Fri Apr 22, 2011 5:26 am

set traps on your IF statements, to find out where it's failing.

johnj
php-forum Super User
php-forum Super User
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

Fri Apr 22, 2011 5:29 am

a).check if the thank you page is present

b). What are you trying to do here?
header( "Location: $thankyouurl" );
exit ;
header( "Location: $thankyouurl" )

header..then an exit and then again a header.

'exit' will stop/terminate the script....after that what is the use of a new header statement...??

andyrichin
New php-forum User
New php-forum User
Posts: 22
Joined: Fri Apr 29, 2011 5:02 pm

Mon May 02, 2011 7:09 am

I am having problems with a contact form as well. It will not send to my email. Is there any way you could provide your HTML code as well? Would be greatly appreciated.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests