Jump to content


Photo

can someone please help - 3rd attempt.


  • Please log in to reply
2 replies to this topic

#1 case

case
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 22 July 2006 - 09:46 PM

all i want to do is get my php script to load a secific webpage depending if an error has occured.  I have asked twice in the past and when i posted the script some dingo had a right moan.

all i want to know is this : what (if any) command should can i use to load webpages ?

i have a working script that follows these rules :


send email ......

email not sent :

display error message.

else

display thank you message.


however, it also display the entire form again and plays some additional flash that i dont want displayed more then once, so please can someone give me some pointers as to what i need to add to make it load a custom error page, or load a custom thank you page.

#2 Branden Wagner

Branden Wagner
  • Members
  • PipPipPip
  • Advanced Member
  • 111 posts

Posted 22 July 2006 - 09:51 PM

if im understanding right...
if( email was not sent)
{
   include("error.php");
   exit();
}
else
{
include("thankyou.php");
exit;
}
// The rest of the normal form here.


#3 case

case
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 23 July 2006 - 08:01 PM

perfecto, thats helped me solve the problem,  thank you for the soluton.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users