Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2011
    Posts
    24
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Question 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
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,500
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    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.


    .


  •  

    Posting Permissions

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