clientuser
Programmer
i have two radio buttons and a submit button on a form.
i want it so that when the user selects one of the radio buttons and pushes the submit button, it will take them to the page based on the radio button selected.
the javascript code i came up with is:
but i am just learning javascript .......
any suggestions?
i want it so that when the user selects one of the radio buttons and pushes the submit button, it will take them to the page based on the radio button selected.
the javascript code i came up with is:
Code:
function checkradio(){
if (request.getParameter("R1").equals("V1")) {
response.redirect "subscribe.asp"
error=1;
return false;
}
else
if (request.getParameter("R1").equals("V2")) {
response.redirect "unsubscribe.asp"
error=1;
return false;
}
else
return true;
}
but i am just learning javascript .......
any suggestions?