Re: Checkboxes on repeat regions
| From: | Stuart Felenstein | Date: | Mon, 06 Dec 2004 12:39:15 +0000 |
| Subject: | Re: Checkboxes on repeat regions | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-37601@lists.php.net to get a copy of this message | ||
--- Jason Wong <php-db@gremlins.biz> wrote:
> I'm not sure what you mean exactly by "intended use
> checkboxes".
Intended use - I generate a list (via a repeat region)
of records. Each item on the list has an associated
checkbox. If I put a check in the box, do a $_POST I
expect on the next page where I"ve set up the correct
parameters, to see the selected record only.
> How to implement using PHP:.......again this stuff
is in the manual;
Probably, but then again all questions posted here
could be derived from the manual.
>
So I set the value of the check box to:
<th height="38" scope="row"><input type="checkbox"
name="checkbox" value="<?php echo
$rsRes->Fields('Rese'); ?>"></th>
(and by the way, that is Adoob syntax, so don't let
the value throw you)
While it returns from the correct field it is not
returning the correct record. I read somewhere to
name checkbox as an array. checkbox[]
Perhaps this is what I need to do.
Stuart