Web Analytics Made Easy -
StatCounter drop down menu that will change a article to a different version - CodingForum

Announcement

Collapse
No announcement yet.

drop down menu that will change a article to a different version

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • drop down menu that will change a article to a different version

    i want a user to be able to switch the current page from english version to a welsh version.

    i dont mean language translator

    the article refering to english users may require different steps for a welsh user.

    my articles are all set for uk at the moment and i am using sql databse for them.

    i need something like - if welsh is selected. change current article to welsh version.

  • #2
    This is how I imagine it would work.

    You have two little country flags (welsh/english) or links at the top of your main page.
    At the beginning of each script (page), you look for a cookie to be set. If no cookie,
    then you default to English. If the user clicks Welsh, you set a cookie. Each page
    will discover a cookie set, so it changes to Welsh.

    One MySQL table is English, the other Welsh ... so you query the tables based on
    whether or not a cookie was set.


    .

    Comment

    Working...
    X