<select id="selId" name="selId">
<option value="x" selected="selected">x</option>
<option value="y">y</option>
</select>
Some people just use
<option value="x" selected>x</option>
or
<option value="x" selected="true">x</option>
but I prefer attrib="attrib" since that is HTML 4.01 compliant. Refer to html
and sgml docs on that...
http://www.w3.org/TR/REC-html40/
-dave
Ray Hughes wrote:
Hi All,
I have did this before but now I cannot find my reference.
I have a list of states in an html user entry page.
<td> <SELECT NAME="Userstate">
<OPTION VALUE=""></OPTION>
<OPTION VALUE="AL">Alabama</OPTION>
:
:
:
<OPTION VALUE="WY">Wyoming</OPTION>
</SELECT> </td>
After the user inputs their info and then they go back to review the
previously entered data
I want to be able to present the selected state that was previously
selected and is now stored in
the database.
I thought it was something like the following:
<td> <SELECT NAME="Userstate" VALUE="#GetUser.Userstate#">
<OPTION VALUE=""></OPTION>
<OPTION VALUE="AL">Alabama</OPTION>
:
:
:
<OPTION VALUE="WY">Wyoming</OPTION>
</SELECT> </td>
I want to present back to the user the previously selected state.
What am I missing?
Thanks to All
Ray
_______________________________________________
Reply to DFWCFUG:
[email protected]
Subscribe/Unsubscribe:
http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
http://www.mail-archive.com/list%40list.dfwcfug.org/
http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
www.HostMySite.com
www.teksystems.com/