I am working on a php form submit. the form is in a html file and method is submit.php. the fields are-
1. name (text)
2. phone (text)
3. email (test)
4. cv (file)
5. comment (textarea)
I am using jquery form validation plugin (bassistance.de), and jQuery Form Plugin (jquery.malsup.com/form). I want the form to submitted with ajax and email to an address. I have done it successfully. but problem is for file. I cannot understand the procedure. is the file has to be uploaded to server first and then send as attachment? or it can send the file as attachment from client's pc? I am really confused about this. Please help me about this. Also if the file has to be uploaded, then an example for ajax upload will be very helpful. I cannot upload the file when ajax submit the form.