[eluser]eoinmcg[/eluser]
seems ok, what you're doing.
what part are you specifically having trouble with?
in terms of the upload and attachment;
- add an upload field to the form
Code:
<label>File</label><input type="file" name="file" />
- after validation is successful add in a check for an uploaded file and if present process the file
Code:
if($_FILES['file']['name'])
{
$file_name = $this->_do_upload(); // _do_upload() should return the path and name of the uploaded file
$this->email->attach($file_name);
}
- obviously, you'll have to write the _do_upload() method but there's enough in the user guide to make this a trivial task.