Hi All,
Help, I have a form which I am populating with data from an Oracle Database, I have two Radio Buttons (Male & Female). Now if the returning Data is for a female, I want the Radio Button for male to be disable.
Thanks
Abd
ez4ne12c
03-17-2003, 12:32 PM
you could try
something like
onClick='form.buttonname.checked=!form.buttonname.checked'
which should keep it how it is currently set
ez
arnyinc
03-17-2003, 03:30 PM
Is this for an "update" or "edit" type of page? It sounds like you are looking up some data in the database and setting a bunch of fields based on what the user initially entered.
<%
'open database and setup recordset first
'what did the user enter
user_choice=RS("gender")
%>
<form name="myform">
<input type="radio" name="gender" value="female" <%if user_choice="female" then response.write "checked" else response.write "disabled"%>>female<br>
<input type="radio" name="gender" value="male" <%if user_choice="male" then response.write "checked" else response.write "disabled"%>>male<br>
</form>
edit: Oops, this will only work if you use ASP.