i don't know if this is an intended "feature" of firefox, but it appears that a <SELECT> box will not default to the <OPTION SELECTED> value when a page is reloaded. to be more specific, the correct option will be selected on initial load, and the first refresh, but not subsequent refreshes.
it works fine in ie and opera. i doubt it makes any difference, but the code is being generated by php, so i suppose it's possible that that *might* have something to do with it.
is this a bug in firefox?? if so, can anyone think of a workaround?? (please bear in mind that i'm going to be adding an onChange() to refresh the page when the user changes the country.)
Code: Select all
<HTML>
<HEAD><TITLE>player</TITLE></HEAD>
<BODY>
<FORM NAME="myForm" METHOD="post" ACTION="player.php">
user name <INPUT TYPE="text" NAME="user_name" VALUE="banditski"><BR>
real name <INPUT TYPE="text" NAME="real_name" VALUE="banditski"><BR>
email address <INPUT TYPE="text" NAME="email" VALUE="banditski"><BR>
<BR>
location:<BR>
country <SELECT NAME="country" ID="country"><BR>
<OPTION VALUE="CA">Canada</OPTION>
<OPTION VALUE="US">United States</OPTION>
<OPTION VALUE="DE">Germany</OPTION>
<OPTION VALUE="NL" SELECTED>Holland</OPTION>
<OPTION VALUE="FR">France</OPTION>
<OPTION VALUE="MX">Mexico</OPTION>
</SELECT><BR>
<BR>
<INPUT TYPE="submit">
</FORM>
</BODY>
</HTML>