Helpful Information
 
 
Category: Looking for such a script or service
Splash Page with Remember my region and country option

Hi,

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

Bart Krajewski.

Cookies is the simple answer.
PHP sessions could work a little better.

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
problem volta.awardspace.com/fuct.html

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
over.

thanks a lot

Bart Krajewski

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.

Simple solution:

It looks like you are using a copy and paste javascript to do the redirect. What you want to do is modify that code.

Near the end of the javascript, find the line that reads:

window.location.href = url;

Change this to:

window.location.replace(url);

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.

Enjoy!

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

You would put the URL you want to redirect to where it says url










privacy (GDPR)