The attachement to the email message happens in the php script. The php script uploads the specified file via php's ftp functions to the server, then a specific message is generated and finally the uploaded doc is attached to the email message, and sent using phpMailer, then deletes the uploaded file/doc.

All i want to do is get the needed info from the html form to the above mentioned php script so that i can do all the above mentioned.