Hello everyone,
I have a form with 3 text inputs; onclick I pass their values to another php file to process everything in that file without a refresh, it works fine, but in the same form I also have a input ‘type=file’ and I need to pass its value to that other file as well, does anybody know how to do it?
This is what I have:
function processform(){
$.post('processnewpostForm.php',
{title: newpostform.titleInput.value,
postcontent: newpostform.postcontentInput.value,
category: newpostform.categoryInput.value,
function(output){
$('#message').html(output).show();
}
);
}

