View Full Version : Splash Page with Remember my region and country option
12-25-2006, 07:29 AM
Iam wanting to biuld a Splash Page with Remember my region and country (tick box) option. So when somone goes to my first page which will be the spash page they will have the option to choose there region, once they have selected there region they can tick the Remember my region and country box then they will be redirected to a sepsfic part of the website. hear is an example website of what I want to do www.ps3preorder.net
can any one please help me or give me any info how Id go about making this. I would really appreciate it.
thanks a lot
12-26-2006, 08:42 AM
Cookies is the simple answer.
PHP sessions could work a little better.
12-27-2006, 08:45 AM
I ended up using the cookie
option but when I click back I have to click twice realy fast to go back is
there any way to fix this bug that you know of, hear is a sample of my
I would realy appreciate any help, Iam only a newbie and Ive been
working on this for 10 hours a day for 5 days and my mind starting to turn
thanks a lot
12-27-2006, 09:21 AM
Well... that page doesn't seem to do anything. Just a checkbox. But then I refresh and it goes to another page. But no pages that would involved clicking back twice.
That is usually based on a redirect that jumps to the next page. Hitting back DOES go back, but only to the redirect page. Hitting back twice gets you to the page before the redirect. Not sure exactly how to avoid that since there are security limitations based on changing the history. The type of redirect can affect whether it's stored in the history or not... I think that using a meta tag and/or http location header may not make it appear in the history.
12-27-2006, 05:32 PM
window.location.href = url;
Change this to:
This will replace the browser's history entry with the proper page to redirect to. The redirect page will not be in the history anymore, so you wont see it upon clicking back.
12-28-2006, 03:32 AM
Hi george thanks a lot for your response I cant seem to get it to work, is it supposed to stay like this or am I to put a URL were it says
(url) to redirect me some were els?
thanks a lot I really appreciate the help guys
12-28-2006, 04:01 AM
You would put the URL you want to redirect to where it says url
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.