Select state before sign up page

Discussion in 'Customization & add-ons' started by brandonb, Apr 26, 2011.

  1. brandonb

    brandonb New Member

    Joined:
    Nov 14, 2010
    Messages:
    11
    Hey guys, I have a drop down list of states on my landing page and i want to have a user select their state "alaska" and go to the alaska.html.

    I also want to store their state in a session so on signup their state will be pre selected.

    I know how to display values for members like a members name, but i dont know how to set values temporarily for non members.
    Any help would be appreciated.
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
  3. brandonb

    brandonb New Member

    Joined:
    Nov 14, 2010
    Messages:
    11
    how would i go about setting the state value in a session. Because i kinda want to display the state every where before they signup. To make my product seem more relative to the customers needs.
    Thanks for the help
  4. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Setting a session variable for your various website posts/pages can be set using normal PHP functions:

    http://www.w3schools.com/PHP/php_sessions.asp

    When you build your link to your aMember signup pages from your custom posts/pages you can use the previously defined variable to populate the state URL parameter.

Share This Page