I have a view with a list of records, each one with a checkbox to the
side. The name of the checkbox is the Id of the record.
<?php echo $form->checkbox('Record]['.$record['Record']['id']);?>
Then in my controller I want to do a function that writes the Ids of
the records with marked checkboxes. I have this:
foreach($this->data['Record'] as $record)
{
if($record=='1')
{
echo ?;
}
}
Inside of the if I want to write id of the record,
how I can obtain this Id that it is the name of the checkbox?
Thanks and regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---