[ic] Inconsistent selected tag behaviour

Alexandra Birch interchange-users@interchange.redhat.com
Fri Jan 11 09:54:00 2002


I have three selects in my form and on a submit form validation error the first select
always correctly displays the peviously remembered option. The other two are identical
to the first select. The second and the third one only sometimes remembers. 
This is the way its documented in ictags and so should work. If anyone wants to try 
reproduce this here is a page you could cut and past to csc_iceg.html

Anyone know why? Seems to be a bug

Another thing - if I put my profile in profiles.order it doesn't get found even after
restarting the interchange server.

--------------------------------csc_iceg.html---------------------------------------------
[set ic_profile]
name=required
platform=required
browser=required
connection=required
[/set]

<HTML>
<body bgcolor="#ffffff"> <table> <tr> <td >

<form action="[process]" method="post" name="supportquery" >
<INPUT TYPE=hidden NAME=mv_order_profile VALUE="ic_profile">
<input type=hidden name=mv_todo value=submit>
<input type=hidden name=mv_nextpage value="csc_iceg.html">
<input type=hidden name=mv_failpage value="csc_iceg.html">
<input type=hidden name=mv_session_id value="[data session id]">

[if type=explicit compare="[error all=1 show_var=1 keep=1]"]
The areas that need correction are shown in <FONT COLOR=__CONTRAST__>this color</font> below.</font>
<br>
[else]
[value name="name" set=""]
[value name="platform" set=""]
[value name="browser" set=""]
[value name="connection" set=""]
[/else]
[/if]<br>

[error name=name std_label="Name" required=1]
<input type="text" name="name" size="30">
<br>
[error name=platform std_label="Operating System" required=1]
<br>
<select name="platform">
<option value="">Select </option>
<option [selected name=platform value="Windows 95"]>Windows 95</option>
<option [selected name=platform value="Windows 98"]>Windows 98</option>
<option [selected name=platform value="Don&acute;t Know"]>Don&acute;t Know</option>
</select>
<br>
[error name=browser std_label="Browser" required=1]
<br>
<select name="browser">
<option value="">Select </option>
<option [selected name=browser value="IE 3"]>Internet Explorer 3 </option>
<option [selected name=browser value="IE 4"]>Internet Explorer 4</option>
<option [selected name=browser value="IE 5"]>Internet Explorer 5</option>
<option [selected name=browser value="Don&acute;t Know"]>Don&acute;t Know</option>
</select>
<br>
[error name=connection std_label="Internet Connection" required=1]
<select name="connection">
<option value="">Select</option>
<option [selected name=connection value="Modem"]>Modem</option>
<option [selected name=connection value="DSL"]>Digital Subscriber Line</option>
<option [selected name=connection value="Cable"]>Cable</option>
<option [selected name=connection value="Don&acute;t Know"]>Don&acute;t Know</option>
</select>
<br>
 <input type="submit" name="supportquery" value="Submit Query" id="linksub" class="bborder">
</form>
</td> </tr> </table> </BODY> </HTML>
[seti clear_errors][error all=1 hide=1 comment="Clear errors"][/seti]


--------------------------------csc_iceg.html---------------------------------------------


Lexi


----------------------------------------------
Alexandra Birch
Trymedia Systems
965 10 77 71 
www.trymedia.com
----------------------------------------------