Re: Checkboxes on repeat regions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Jason Wong <php-db@xxxxxxxxxxxx> 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

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux