Default value in SELECT form

liunx

Guest
I am developing a system where users can edit their details. Among the details they can edit are in the form of drop down menu.<br />
<br />
If for example in a member's Salutation he chose a 'Mr.', once he edits his profile the form should automatically be set as <br />
<br />
<select name="salutation"><br />
<option>PLEASE SELECT SALUTATION</option><br />
<option "Dr">Dr.</option><br />
<option "Mr" Selected>Mr.</option><br />
<option "Mrs">Mrs.</option><br />
<option "Ms">Ms.</option><br />
</select><br />
<br />
How do I make such pre defined selected value if I have a variable named salutation = "Mr."<br />
<br />
Hope somebody can help me.<!--content-->http://forums.webdeveloper.com/showthread.php?s=&threadid=23766<br />
is a thread that should help you.<br />
<br />
the eventual answer is at this post:<br />
<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=23766#post123444">http://forums.webdeveloper.com/showthre ... post123444</a><!-- m --><br />
<br />
that's if you're using php..<!--content-->Thanks hammerslane. Have you got an ASP version? I wonder if there is another way because my concern is on the COUNTRY field which is a very long array of options.<!--content-->i'm afraid i don't know any asp. i can see how my code, even adapted for asp, would be very heavy.<br />
i'm not sure of a better way to do it. maybe you're better posting at the asp forum....<!--content-->
 
Back
Top