JustWondering
Technical User
Hi,
I have a group of radio buttons in page1. When user click submit, if one of the button is not selected, I want to display a msg to tell user must select one to move on.
I have some thinf like this but it didn't work (let user go to next page)
<input type="radio" name="rdbutton">Radio 1<br>
<input type="radio" name="rdbutton">Radio 2<br>
<input type="radio" name="rdbutton">Radio 3<br>
If Request("rdbutton"
then problem=true
If problem=true then
Session("errMsg"
="Please select one"
redirect to same page
End if.
What's wrong with my code?
I have a group of radio buttons in page1. When user click submit, if one of the button is not selected, I want to display a msg to tell user must select one to move on.
I have some thinf like this but it didn't work (let user go to next page)
<input type="radio" name="rdbutton">Radio 1<br>
<input type="radio" name="rdbutton">Radio 2<br>
<input type="radio" name="rdbutton">Radio 3<br>
If Request("rdbutton"
If problem=true then
Session("errMsg"
redirect to same page
End if.
What's wrong with my code?