Jump to content

Archived

This topic is now archived and is closed to further replies.

case

can someone please help - 3rd attempt.

Recommended Posts

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 [color=red]dingo[/color] 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 :


[i]send email ......

email not sent :

display error message.

else

display thank you message.[/i]

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.

Share this post


Link to post
Share on other sites
if im understanding right...
[code]
if( email was not sent)
{
  include("error.php");
  exit();
}
else
{
include("thankyou.php");
exit;
}
// The rest of the normal form here.
[/code]

Share this post


Link to post
Share on other sites
perfecto, thats helped me solve the problem,  thank you for the soluton.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.