How to upload file and form data using jQuery?
<input type="text" name="Name" id="name" />
<input type="text" name="Email" id="email" />
<input type="file" name="attachment" id="attachment" accept="application/msword/pdf" />
$target = "uploads/";
$target = $target . basename( $_FILES['attachment']['name']) ;
move_uploaded_file($_FILES['attachment']['tmp_name'], $target);