Jump to content

Go To Page Function??


cohlson2002

Recommended Posts

Is there a php function to go to a page under a certain condition?
For example, someone is on page1, they click on a link which takes them to page2, which, if certain conditions are met, thay would automatically be forwarded to page3 (they really wouldn't even see page2, it would just be a processing page).
Is there a "automatic go to page" function?

Thanks
Link to comment
Share on other sites

[!--quoteo(post=359558:date=Mar 29 2006, 08:10 AM:name=cohlson2002)--][div class=\'quotetop\']QUOTE(cohlson2002 @ Mar 29 2006, 08:10 AM) [snapback]359558[/snapback][/div][div class=\'quotemain\'][!--quotec--]
For example, someone is on page1, they click on a link which takes them to page2, which, if certain conditions are met, thay would automatically be forwarded to page3 (they really wouldn't even see page2, it would just be a processing page).
[/quote]
One possible example:
if(mycondition == true) {
include('page3.php');
} else {
include('page2.php');
}
Link to comment
Share on other sites

[!--quoteo(post=359562:date=Mar 29 2006, 01:35 AM:name=Honoré)--][div class=\'quotetop\']QUOTE(Honoré @ Mar 29 2006, 01:35 AM) [snapback]359562[/snapback][/div][div class=\'quotemain\'][!--quotec--]
One possible example:
if(mycondition == true) {
include('page3.php');
} else {
include('page2.php');
}
[/quote]


I tried that, I need to pass a variable to the page I want to go to. When I use an include it will display the page, but without the variable.

Any other suggestions
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.