evergreean43
Technical User
I need to create a form that has an initial question on a page called PageOne.cfm such as:
Do you live in San Diego?
If the Person says no it takes them to pageTwo.cfm
If the person answers yes it automatically adds another form entry on pageOne.cfm that asks if the Person is over 35. If the Person says yes then it takes them to pageThree.cfm. If the person says no it takes them to pageFour.cfm.
Here is my start but not need more assistance and guidance on the best way to do this.
Do you live in San Diego?
If the Person says no it takes them to pageTwo.cfm
If the person answers yes it automatically adds another form entry on pageOne.cfm that asks if the Person is over 35. If the Person says yes then it takes them to pageThree.cfm. If the person says no it takes them to pageFour.cfm.
Here is my start but not need more assistance and guidance on the best way to do this.
Code:
<script>
function gotoYes()
{
document.myFrm.action="pageOne.cfm";
}
function gotoNo()
{
document.myFrm.action="pageTwo.cfm";
}
</script>
<form name="myFrm">
<input name"myvar" type="radio" onclick="gotoYes()" value="yes">
<input name"myvar" type="radio" onclick="gotoNo()" value="no">
.....
</form>