Hello.
I have a table with two fields:
1) groups_id
2) groups_name
The data contained is simple:
groups_id groups_name
----------- ----------------
1 Group A
2 Group B
3 Group C
4 Group D
I would like to dynamically create a checkbox selection similar to:
<input name="sel_group " type="checkbox" value="1">Group A<BR>
<input name="sel_group " type="checkbox" value="2">Group B<BR>
<input name="sel_group " type="checkbox" value="3">Group C<BR>
<input name="sel_group " type="checkbox" value="4">Group D<BR>
So I need a script that'll take this information from the groups table
and create the above. Can you help?
Thanks.
Ward
I have a table with two fields:
1) groups_id
2) groups_name
The data contained is simple:
groups_id groups_name
----------- ----------------
1 Group A
2 Group B
3 Group C
4 Group D
I would like to dynamically create a checkbox selection similar to:
<input name="sel_group " type="checkbox" value="1">Group A<BR>
<input name="sel_group " type="checkbox" value="2">Group B<BR>
<input name="sel_group " type="checkbox" value="3">Group C<BR>
<input name="sel_group " type="checkbox" value="4">Group D<BR>
So I need a script that'll take this information from the groups table
and create the above. Can you help?
Thanks.
Ward
Comment