So I’m building a website that has a prices page in it that lists different subscription packages. Each package option has a ‘Sign Up’ button under it that takes the user to my sign up page and on my sign up page there is a radio button group with each subscription option having its own radio button. My question is, how can I return the sign up page with a specific radio button checked depending on which button was clicked on the price page?
I know I could have separate sign up pages, one for each option and have the specific radio button checked in the html but that seems really inelegant and I’m sure there is a better way to do this, either via a php response or maybe javascript?? Thank you for any advice.
You could use several options :
url :
http://example.com/signup?option1=truesessions :
$_SESSION[signup1] = true/falseor via cookie
and set it up like that :
or