|
|
 |
Re: FN-FORUM: PHP version of ASP datagrid?
date posted 21st May 2007 14:43
> Thanks for that.... Although I am pretty sure php doesn't deal with
> checkboxes the same way asp does...
ASP and PHP process checkboxes however you want them to :)
> 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...
Adding square bracket array notation to the input names will cause PHP t=
o =
take the POST/GET data and construct an array for you.
if all are ticked =3D>
$_POST['options'] has the value Array('fred','julie','frank')
if all are ticked =3D>
$_POST['options'] has the value Array('fred' =3D> =
'on','julie'=3D>'on','frank'=3D>'on')
You can also do things like
to get multi-dimensional arrays returned to the code.
Cheers!
Anthony
-- =
www.fonant.com - Quality web sites
|
 |
|