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.
You can use URL query strings to populate signup form fields. Example: http://demo.amember.com/signup.php?country=US&state=AK This allows you to hotlink to signup page without having to set cookies or populate session variables.
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
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.