Hi
I've a form with an option group. I'm using VBscript to write server-side validation - has to be like this
When I submit the form it retains any text values but I can't get it to retain the option group value - I am plugging this code into an off the shelf package so i can't use method such as below
<option value="under 18" <% If AgeGroup = "under 18" Then Response.Write "SELECTED" %>>under 18
this is part of what i have
b = b & "<select name=Law id=Law"
b = b & "<option value="""">Select a Law Type</option>"
b = b & "<option value=""Gen"">Gen</option>"
b = b & "<option value=""Lit"">Lit</option>"
b = b & "</select>"
I want to say if the user chooses Gen but doesn't meet the all the validation it retains the value Gen
any ideas much appreciated
Tony
I've a form with an option group. I'm using VBscript to write server-side validation - has to be like this
When I submit the form it retains any text values but I can't get it to retain the option group value - I am plugging this code into an off the shelf package so i can't use method such as below
<option value="under 18" <% If AgeGroup = "under 18" Then Response.Write "SELECTED" %>>under 18
this is part of what i have
b = b & "<select name=Law id=Law"
b = b & "<option value="""">Select a Law Type</option>"
b = b & "<option value=""Gen"">Gen</option>"
b = b & "<option value=""Lit"">Lit</option>"
b = b & "</select>"
I want to say if the user chooses Gen but doesn't meet the all the validation it retains the value Gen
any ideas much appreciated
Tony