[eluser]cahva[/eluser]
For the first question, make the checkbox field names as array. Like:
Code:
<input type="checkbox" name="certification[<?=$cert->certification?>]" value="<?=$cert->id?>" /> <?=$cert->certification?>
With a name like that, you can use foreach on $_POST['certification'].
The latter error with the email.. You are actually echoing $cat inside $this->email->message(). Also making any kind of loop in the middle of variable setting is not allowed. So dont
You dont have to foreach the $categories['category']. Just use implode() function. So if you wanted to add categories separated by comma, you would do it like this:
Code:
$this->email->message(
'Specialties : '.$specialties."\r\n".
'Categories : '.implode(',',$categories['category'])."\r\n".
'Description : '.$description
);