|
|
 |
Re: FN-FORUM: PHP version of ASP datagrid?
date posted 21st May 2007 13:36
Values in PHP for checkboxes are on (checked) or off (unchecked)
----- Original Message -----
From: "Duncan Glendinning" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Monday, May 21, 2007 12:47 PM
Subject: Re: FN-FORUM: PHP version of ASP datagrid?
>
> Sam,
>
> Thanks for that.... Although I am pretty sure php doesn't deal with
> checkboxes the same way asp does...
>
> if you have several checkboxes all called uid with the values set to
> their ids, then the value of uid will be the last one listed on the
> page, not a CSV or an array...
>
> If I can get around this, then it is doable.
> I am wondering whether I also pass the submitted form the query that
> displayed all the results, and then get a loop to work through all the
> results again, checking to see if the checkbox (whose name is the
> current id of the record I am looking at ) is set to 1 for example,
> and then construct the query that way.
>
> Any thoughts anyone?
>
> Duncan
>
> --
> Freelancers, contractors earn more with Prosperity4
> Call 0870 870 4414 or visit www.prosperity4.com
> and benefit from Inland Revenue approved expenses today.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
> |
 |
|