During trying to combine submit and upload in one form, I have a problem in upload but for submit form it\'s no problem.
JQuery + Ajax :
$(\"#oqcsubm
PHP Notice: Undefined index: uploadedfile
it's mean that the form not send the uploadedfile value. After check the parameter there are no uploadedfile included. why it happens?
You can not upload files over vanilla cross-browser ajax, such as that which jQuery uses. Period, full stop, end of story.
If you must do the upload without a page refresh, the common trick is to create an iframe
and submit the form to it. Another trick is to use the experimental File API, exposed as part of HTML5. These can be a pain to handle yourself, but it should work well if you want to do it all by hand.
I highly recommend using a third-party file upload widget for this. I've had luck with Plupload, but some people also recommend Uploadify. They can both optionally use a Flash or HTML5 backend to perform the upload, which also gives users a happy little progress meter.