Welcome Guest, Not a member yet? Register   Sign In
How to handle checkboxes
#2

Inside your controller you can run a loop for every checked checkbox and attach a logical named file for each value like (untested)

PHP Code:
foreach($this->input->post('attachments') as $attachement)
{
    
// $attachement contains for e.g. nui, lidar, etc.
    
$this->email->attach('/attachments/file_'.$attachement.'.pdf');


Reply


Messages In This Thread
How to handle checkboxes - by alexandervj - 11-24-2014, 02:02 PM
RE: How to handle checkboxes - by Rufnex - 11-24-2014, 02:23 PM
RE: How to handle checkboxes - by alexandervj - 11-24-2014, 02:31 PM
RE: How to handle checkboxes - by Rufnex - 11-24-2014, 02:36 PM
RE: How to handle checkboxes - by alexandervj - 11-24-2014, 02:50 PM
RE: How to handle checkboxes - by Rufnex - 11-24-2014, 02:52 PM
RE: How to handle checkboxes - by alexandervj - 11-24-2014, 02:57 PM
RE: How to handle checkboxes - by Rufnex - 11-24-2014, 03:07 PM
RE: How to handle checkboxes - by alexandervj - 11-24-2014, 03:48 PM
RE: How to handle checkboxes - by Rufnex - 11-24-2014, 03:52 PM
RE: How to handle checkboxes - by alexandervj - 11-24-2014, 03:55 PM
RE: How to handle checkboxes - by InsiteFX - 11-24-2014, 11:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB