Forum Moderators: coopster

Message Too Old, No Replies

Strange drop down box works only in netsc and Moz

all scrambled and incomplete in IE

         

henry0

3:30 pm on Jan 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I really need to understand what can be wrong
this is a simple Drop down box
in all browsers is OK, but in IE!
instead of a regular drop d box
is shows the category not vertical but like from left to right
not every categories are showm, some shows their own drop down box... it is a mess

Choose a Category:</td></tr>
<tr>
<td>
<select name="category" Wrap=virtual><option value="ag">AGRICULTURE
<select name="category" wrap=virtual><option value="archi">ARCHITECTS
<select name="category" wrap=virtual><option value="auct">AUCTIONEERS
<select name="category" wrap=virtual><option value="bk">BANKS
<select name="category" wrap=virtual><option value="coll">COLLEGE & U

</select><br><? echo "<FONT COLOR=\"#800000\">VALUE RECORDED AS PER YOUR SELECTION:</FONT>";?> <b><?php print $s[category];?></b>

thank you

<edit>
since it is a section of a longer form, I just tried to isolate that section and run it as is
again works fine in Netscape
run scrambled in IE
</edit>

sabai

3:50 pm on Jan 18, 2004 (gmt 0)

10+ Year Member



This is HTML, not PHP, but...

<select name="category" wrap=virtual>
- you only need this once, take them all out except the first one... then close all
<option>'s
with a </option>.

BitBanger

3:57 pm on Jan 18, 2004 (gmt 0)

10+ Year Member



Try this instead

Choose a Category:</td></tr>
<tr>
<td>
<select name="category" Wrap=virtual>
<option value="ag">AGRICULTURE</option>
<option value="archi">ARCHITECTS</option>
<option value="auct">AUCTIONEERS</option>
<option value="bk">BANKS</option>
<option value="coll">COLLEGE & U</option>

</select><br><? echo "<FONT COLOR=\"#800000\">VALUE RECORDED AS PER YOUR SELECTION:</FONT>";?> <b><?php print $s[category];?></b>

The problem is you had multiple select tags when only one was needed. You also need to close each option tag. Netscape and Mozilla are apparently more forgiving than IE is when fed malformed html.

You may want to refer to [w3schools.com ] for how a select field should be used. www.w3schools.com is a useful resource even if it is a bit outdated in places.

henry0

4:03 pm on Jan 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



thank you
yes it did the job
appreciated