lsample20
06-11-2008, 04:28 PM
Hey guys, I'm not a programmer so please excuse the newbie language I may use. I have very slight php experience and can def. copy and paste code if you guys can help me out!
Here is what I want to accomplish:
I need a redirect script that works conditionally. I need it to be able to redirect web visitors only if they came from a certain page. Otherwise, I don't want it to redirect...I want the visitor to stay there.
For an example, lets assume that I want to redirect the visitor if they came from page1 and arrived at page2. If they got to page2 by any other means, I don't want to redirect.
Again, if they got to page2 through page1, then redirect them.
Also, I don't want it to be conditional on a particular link from page1, because page1 is going to have a standard redirect on it. If that makes sense. The visitor will never actually see page 1 anyway because there is a redirect there, so the code on page2 should just recognize ANY visitor coming from page1 will be redirected.
How would you suggest that I pull this off?
Thanks a ton guys!
Here is what I want to accomplish:
I need a redirect script that works conditionally. I need it to be able to redirect web visitors only if they came from a certain page. Otherwise, I don't want it to redirect...I want the visitor to stay there.
For an example, lets assume that I want to redirect the visitor if they came from page1 and arrived at page2. If they got to page2 by any other means, I don't want to redirect.
Again, if they got to page2 through page1, then redirect them.
Also, I don't want it to be conditional on a particular link from page1, because page1 is going to have a standard redirect on it. If that makes sense. The visitor will never actually see page 1 anyway because there is a redirect there, so the code on page2 should just recognize ANY visitor coming from page1 will be redirected.
How would you suggest that I pull this off?
Thanks a ton guys!