I am trying to create a form which asks a series of q's the last of which triggers what questions follow from a set.
i.e.
<select name="age">How old are you?</select>
<option value="20">20-30</option>
<option value="30">+30</option></select>
If you answer 20-30, I want to then display a set of q's geared for that group, if +30 is chosen, a different set of q's is displayed.
I was thinking that I could simply use IF login to check for the value of "age" then dependant display the appropriate html code for the q's, however I am not sure how to get the page to change and resubmit itself after the value is selected? Not sure if this is the best way to do it since I will need to use same kind of login again inside the question ranges dependent on answers chosen. I was thinking an onchange() for the Drop Down calling a j-script function that will resubmit the page passing that value would work, but having issues with the resubmit code?
Thanks,
SM
i.e.
<select name="age">How old are you?</select>
<option value="20">20-30</option>
<option value="30">+30</option></select>
If you answer 20-30, I want to then display a set of q's geared for that group, if +30 is chosen, a different set of q's is displayed.
I was thinking that I could simply use IF login to check for the value of "age" then dependant display the appropriate html code for the q's, however I am not sure how to get the page to change and resubmit itself after the value is selected? Not sure if this is the best way to do it since I will need to use same kind of login again inside the question ranges dependent on answers chosen. I was thinking an onchange() for the Drop Down calling a j-script function that will resubmit the page passing that value would work, but having issues with the resubmit code?
Thanks,
SM