Results 1 to 7 of 7

Thread: Splash Page with Remember my region and country option

  1. #1
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,162
    Thanks
    263
    Thanked 690 Times in 678 Posts

    Default

    Cookies is the simple answer.
    PHP sessions could work a little better.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default click back twice bug

    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

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,162
    Thanks
    263
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Dec 2006
    Location
    Raleigh, NC
    Posts
    15
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    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!

  6. #6
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  7. #7
    Join Date
    Dec 2006
    Location
    Raleigh, NC
    Posts
    15
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •