This is probably simple, but I'm drawing a blank. Here is my form element as it stands:
<FORM ACTION="#CGI.SCRIPT_NAME#" METHOD="POST" ENABLECAB="No" ENCTYPE="multipart/form-data">
<CFOUTPUT QUERY="GetPeople">
<INPUT TYPE="checkbox" NAME="Receipient" VALUE="#PersonID#"<CFIF LISTFIND(MailingList,PersonID) GT 0> checked</CFIF>> #PersonFirstName# #PersonLastName#<BR>
</CFOUTPUT><BR>
<INPUT TYPE="submit" NAME="Submit" VALUE="Edit List">
<INPUT TYPE="reset" NAME="Reset" VALUE="Clear Selections">
</FORM>
This displays a rather long list of checkboxes with a person's name beside each one. What I would like to do is display them table style, maybe 3 names across like this:
Name 1 Name 2 Name 3
Name 4 Name 5 Name 6
Name 7 Name 8 Name 9
|
|
V
etc.
Of course, I still want the checkbox for each one. I've considered loops, arrays and tables, but I just can't seem to figure out how to do this. As soon as someone tells me, I'm sure I'll say "Doh!
Why didn't I think of that?" Calista :-X
Jedi Knight,
Champion of the Force
<FORM ACTION="#CGI.SCRIPT_NAME#" METHOD="POST" ENABLECAB="No" ENCTYPE="multipart/form-data">
<CFOUTPUT QUERY="GetPeople">
<INPUT TYPE="checkbox" NAME="Receipient" VALUE="#PersonID#"<CFIF LISTFIND(MailingList,PersonID) GT 0> checked</CFIF>> #PersonFirstName# #PersonLastName#<BR>
</CFOUTPUT><BR>
<INPUT TYPE="submit" NAME="Submit" VALUE="Edit List">
<INPUT TYPE="reset" NAME="Reset" VALUE="Clear Selections">
</FORM>
This displays a rather long list of checkboxes with a person's name beside each one. What I would like to do is display them table style, maybe 3 names across like this:
Name 1 Name 2 Name 3
Name 4 Name 5 Name 6
Name 7 Name 8 Name 9
|
|
V
etc.
Of course, I still want the checkbox for each one. I've considered loops, arrays and tables, but I just can't seem to figure out how to do this. As soon as someone tells me, I'm sure I'll say "Doh!
![[blush] [blush] [blush]](/data/assets/smilies/blush.gif)
Jedi Knight,
Champion of the Force