|
Posted by Geoff Berrow on 12/27/05 18:54
Message-ID: <1135698304.628992.276450@g49g2000cwa.googlegroups.com> from
zek2005 contained the following:
>Each checkbox has an unique name. I understand how to update the table
>with one record checked, but as the numbers of records to change can
>variable, how do I do it???
Don't give each check box a unique name, give each check box the same
name only do it like this: name= "check[]" The value of the checkbox
should be the id of the record you want to change.
This will result in an array of values, $_REQUEST['check'], which you
can loop through using foreach.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Navigation:
[Reply to this message]
|