How to select checkboxes in cakephp and sending email -


i created page using cakephp , have checkboxes every field (the page contains list of patients , every patients have checkbox). want select few patients , send email selected patients. here question how link selected patients email tab.

it helpfull if can give elaborated answer. thank all.

you can use following code:

<?php echo $this->form->input('user.patient_email_ids][', array('multiple' => 'checkbox', 'options' => $checkbox_list));?> 

and $checkbox_list array variable should contain values following:

$checkbox_list = array(                        [abc@def.com] => patient1,                        [ghi@jkl.com] => patient2                       ); 

and can pass $this->request->data['user']['patient_email_ids'] mail component in $to(list of recipients) variable.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -