Hi Lucy,
In your case it is always better to submit to the same page (vote.asp), so that it would be easy to set the radio button on in case of errors. Also on getting all those values through, you can add that to the database and redirect to another page, so that, on refresh of the same page, the database addition code would not get executed again and again and that way you can avoid duplicates.
So request for radio button's value, if OTHER, check if Other textbox is empty and reset the value on the same page.
Code:
<%
txtother = Request("Other")
vote = Request("vote")
If vote = "Other" and len(txtOther) = 0 then
Response.write "You can't escape, enter a value in OTHER TextBox."
End If
%>
...
...
...
<input name="vote" type="radio" value="Sally" <%if vote="Sally" then %> CHECKED <%End If%>>
<input name="vote" type="radio" value="Polly" <%if vote="Polly" then %> CHECKED <%End If%>>
<input name="vote" type="radio" value="Other" <%if vote="Other" then %> CHECKED <%End If%>>
<input type = "text" name="other" value='<%=txtOther%>'>
This would reselect the radio button which was already selected. But I am not sure if that attribute of Radio button is CHECKED or SELECTED. You can use SELECTED if you don't get the value back, as I don't have enough time to check that out in my PC.
Also when you check for values in form variable, always check for its length, so that if anything else comes with it other than valid values you can always trace that out.
This should help you out.
Cheers!
_________________________
- Vijay G
Strive for Perfection