Forum Moderators: open

Message Too Old, No Replies

Unsure how to tackle a problem

         

glamdring

6:25 pm on Mar 28, 2006 (gmt 0)

10+ Year Member



Hi folks.

I have a page on a site I am designing which requires a visitor to choose from 'UK' or 'US', and then takes them through to another page with relevant content on.

Assuming the visitor clicks 'US' and goes to the US page, this page shares a menu graphic with the UK page. So, my 'US' user clicks on, for example, the 'About' page and then clicks back (on the graphic not the browser 'back' button) to the 'Home' page... at the moment they will go back to the UK page not the US page.

I could solve the problem by simply having a seperate graphic with a different URL for this page, but the menu graphic is shared with several pages and I'm sure there must be a simpler more professional way...

Is there some way I could create and use a cookie that, when the 'Home' button was clicked, it would automatically redirect the visitor to the correct 'Home' page?

If so, how? (I'm not asking to be told exactly what to do, I'm very happy to learn - I just don't know where to start). I have never used cookies before as all my pages have been very simple so please be gentle.

TIA.

LifeinAsia

6:33 pm on Mar 28, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I think your best bet is to have a separate "home" page for the US users in the navigation instead of your current setup. This would be the "US" page that people click on from the original page.

Depending on your setup, you may need to change the navigation for all your US pages. If all your pages are static, it will mean some additional hand coding to change each page.