SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2009
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    remember user actions

    Hello world,

    I would like to setup a website where users can select a region from the main navigation with a drop down menu.
    The region name must be saved, because if you view the products page it must only display products from the region the user selected.

    Please give advice as to how I can do this...

    regards,
    Kurt

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use an html select menu, and set the form method as "GET".

    The value will be in the url, like products.php?region=NorthPole

    the php variable $_GET['region'] will contain the value.

  3. #3
    SitePoint Enthusiast premiumscripts's Avatar
    Join Date
    Aug 2009
    Location
    PremiumScripts.com
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Save it in a cookie or in the session.

  4. #4
    SitePoint Enthusiast
    Join Date
    Jul 2009
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the replies guys.

    Im just ganna let the user pick a region on the landing page & from there open the relevant region site...much easier

    Thanks guys!


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
  •