ewc21
02-26-2004, 11:37 AM
I am developing a system in ASP where users can edit their details. Among the details they can edit are in the form of drop down menu.
If for example in a member's Country he chose 'Norway.', once he edits his profile the form should automatically be set as
<select name="country">
<option>PLEASE SELECT COUNTRY</option>
.
.
.
<option "Malaysia">Malaysia</option>
<option "Norway" Selected>Norway</option>
<option "Oman">Oman</option>
<option "Peru">Peru</option>
.
.
.
</select>
How do I make such pre defined selected value if I have a variable named country = "Norway"
Hope somebody can help me.
If for example in a member's Country he chose 'Norway.', once he edits his profile the form should automatically be set as
<select name="country">
<option>PLEASE SELECT COUNTRY</option>
.
.
.
<option "Malaysia">Malaysia</option>
<option "Norway" Selected>Norway</option>
<option "Oman">Oman</option>
<option "Peru">Peru</option>
.
.
.
</select>
How do I make such pre defined selected value if I have a variable named country = "Norway"
Hope somebody can help me.