Re: how to store multiple values checked in checkbox

2006-07-26 Thread bigdog

Have you tried using explode/implode to store your cb data?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



how to store multiple values checked in checkbox

2006-07-25 Thread [EMAIL PROTECTED]

Hi,
I have a table in which there are multiple records with each having
checkboxes.i want when one or more records are chekced ,they should be
deleted.I used the following function in my view file:-

$html->checkbox('Employee/Emp',null,array('name'=>'ch','unchecked'=>'checked','value'=>"'".$arr_emp[$i]['employees']['Emp_id']."'"))

$arr_emp[$i]['employees']['Emp_id'] --this is the employee ids which is
assignig as value
 for deleting the records where employees is a table name and Emp_id is
field name.

the above code is deleting one record.i want multiple records to be
deleted which are checked. i need an array to store the multiple value
for deleting the records .


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---