View Single Post
Old 02-24-2007, 05:39 AM   #8 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,713
redhead is on a distinguished road
If yo name the checkbox something like:
Code:
<input type="checkbox" name="mycheckbox[]" value="apples">
<input type="checkbox" name="mycheckbox[]" value="orranges">
You'll be able to access it through PHP as an array like:
PHP Code:
$checked $_POST['mycheckbox'];
foreach(
$checked as $check)
   
// do stuff with $check 
However I havn't quite figured out, how that namingscheme would work out with your checkAll() javascript...
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote