case Posted July 22, 2006 Share Posted July 22, 2006 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.elsedisplay 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. Quote Link to comment Share on other sites More sharing options...
Branden Wagner Posted July 22, 2006 Share Posted July 22, 2006 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] Quote Link to comment Share on other sites More sharing options...
case Posted July 23, 2006 Author Share Posted July 23, 2006 perfecto, thats helped me solve the problem, thank you for the soluton. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.