Forum Moderators: open
this is the code in the form:
<td class="whitetext">Villamartin</td>
<td><input name="course" type="checkbox" id="course" value="Villamartin"></td>
<td> </td>
<td class="whitetext">Alenda</td>
<td><input name="course" type="checkbox" id="course" value="Alenda"></td>
</tr>
<tr>
<td class="whitetext">Las Ramblas</td>
<td><input name="course" type="checkbox" id="course" value="Las Ramblas"></td>
<td> </td>
<td class="whitetext">Alicante</td>
<td><input name="course" type="checkbox" id="course" value="Alicante"></td>
</tr>
etc (its a multiple option)
i know im missing something simple
Are you talking about in the browser display of your form? You are only seeing one option show? Did you try validating your page yet?
I can see one obvious issue ... you have multiple id attributes of the same unique name on 4 different input elements. The HTML Validator [validator.w3.org] will point out many issues for you quite quickly.
<td class="whitetext">Villamartin</td>
<td><input name="Villamartin" type="checkbox" id="course" value="Villamartin"></td>
<td></td>
<td class="whitetext">Alenda</td>
<td><input name="Alenda" type="checkbox" id="course" value="Alenda"></td>
</tr>
<tr>
<td class="whitetext">Las Ramblas</td>
<td><input name="Las Ramblas" type="checkbox" id="course" value="Las Ramblas"></td>
<td></td>
<td class="whitetext">Alicante</td>
<td><input name="Alicante" type="checkbox" id="course" value="Alicante"></td>
</tr>
Try this sample table with imputs, for only a single item to be checked...
<TABLE class="body">
<TBODY>
<TR>
<TD valign=top>How did you hear about us:</TD>
</TR>
<TR>
<TD valign=top><INPUT type=radio
value="Trade Article" name="Hear About Us">
Trade Article in:
<INPUT name=WhatArticle id="WhatArticle" size=30>
</TD>
</TR>
<TR>
<TD valign=top><INPUT type=radio
value="Direct Mail Piece" name="Hear About Us">
Direct Mail Piece</TD>
</TR>
<TR>
<TD valign=top><INPUT type=radio
value=Referral name="Hear About Us">
Referral</TD>
</TR>
<TR>
<TD valign=top><INPUT type=radio
value="Had a Catalog" name="Hear About Us">
Had a Catalog</TD>
</TR>
<TR>
<TD valign=top><INPUT type=radio
value="I'm Currently a Customer" name="Hear About Us">
I'm Currently a Customer</TD>
</TR>
<TR>
<TD valign=top><INPUT type=radio
value=Other name="Hear About Us">
Other:
<INPUT
size=30 name="Hear About Other">
</TD>
</TR>
<TR>
<TD valign=top><INPUT type=radio
value=Directory name="Hear About Us">
Internet Directory/Search Engine</TD>
</TR>
<TR>
<TD
valign=top><blockquote>
<p>
<INPUT type=radio value=Yahoo name=Directory>
Yahoo</p>
</blockquote></TD>
</TR>
<TR>
<TD
valign=top><blockquote>
<p>
<INPUT type=radio value="Alta Vista" name=Directory>
Alta Vista</p>
</blockquote></TD>
</TR>
<TR>
<TD
valign=top><blockquote>
<p>
<INPUT type=radio value=Google name=Directory>
Google</p>
</blockquote></TD>
</TR>
<TR>
<TD
valign=top><blockquote>
<p>
<INPUT type=radio value=AOL name=Directory>
AOL</p>
</blockquote></TD>
</TR>
<TR>
<TD
valign=top><blockquote>
<p>
<INPUT type=radio value=MSN name=Directory>
MSN</p>
</blockquote></TD>
</TR>
<TR>
<TD
valign=top><blockquote>
<p>
<INPUT type=radio value=OtherDirectory name=Directory>
Other:
<INPUT size=30 name="Directory-Search Other">
</p>
</blockquote></TD>
</TR>
</TBODY>
</TABLE>
[edited by: Jon_King at 8:47 pm (utc) on Dec. 8, 2006]