I am using Jquery to create/assign individual input fields(including Files upload) to text/div elements. No < form > tag is involved.
$.ajax function, was my first trial but it can not send files. My understanding is, once the data arrives in a file on back-end, another server side script could go ahead and feed it into a form_format or directly uses the data for further processing. What is the best approach for communicating between back end and front end in this case?
$.ajax({
type: "POST",
url: "http://upload.website.com/echo.cgi",
data: { name: $('#Name').val(), phone: $('#Phone').val() }
}).done(function(msg) {
alert("Success!"+msg);
});