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

(This post was last modified: 11-24-2014, 03:55 PM by Rufnex.)

But you know where the files on the server located? You can echo your current directory
Code:
echo getcwd();

In your applications, do you send just images like image1, image2 ... ? If so, this would maybe easier

PHP Code:
<td>
<
input type="checkbox" name="attachments[]" value="1">NUI-IR Laser Array Chip<br>
<
input type="checkbox" name="attachments[]" value="2">LiDAR IR Laser Array Field<br>
<
input type="checkbox" name="attachments[]" value="3">Optical Solutions<br>
<
input type="checkbox" name="attachments[]" value="4">None<br>
</
td

foreach(
$this->input->post('attachments') as $attachement)
{
    
$this->email->attach('/path.../uploads/2014/07/image'.$attachement.'.jpg');


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