mlg0001
02-16-2004, 02:29 PM
I have an ASP page displaying a set of 2 radio buttons represented for each record from a database. One radio button value is "1" the other value is "0".
I want each set of radio buttons to be named based on the values in the database record.
Say for instance the variable is called sServerName. sServerName is the value from the database record.
I have the radio buttons named like this"
<input type="radio" name="<%=sServerName%>" value="1">
<input type="radio" name="<%=sServerName%>" value="0">
If I try to say Request.form("sServerName") - this returns the value of the the radio button - which is "1" or "0".
I want to be able to get the actual name of the radio button.
Is this possible ?
I want each set of radio buttons to be named based on the values in the database record.
Say for instance the variable is called sServerName. sServerName is the value from the database record.
I have the radio buttons named like this"
<input type="radio" name="<%=sServerName%>" value="1">
<input type="radio" name="<%=sServerName%>" value="0">
If I try to say Request.form("sServerName") - this returns the value of the the radio button - which is "1" or "0".
I want to be able to get the actual name of the radio button.
Is this possible ?