Hello,

Use an array:

  <input type="checkbox" name="foo[]" value="blah">

Note:

  Only checked checkboxes are passed.

Access:

  print $_REQUEST['foo'][0];  // the first one
  print $_REQUEST['foo'][1];  // the second

You can use named indices too:

  <input type="checkbox" name="foo[bar]" value="blah">

  print $_REQUEST['foo']['bar'];

Mix and match, have fun.

Regards,
Philip


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to