I have an input on my form to allow a user to browse to a file location. the idea being that they can attach a resume to to the application they are getting ready to submit.
<label class="description" for="element_5">Upload a File </label>
<div>
<input id="element_5" name="element_5" class="element file" type="file"/>
For my text feilds and dropdowns i have been using something along the lines of
$experince = $_POST["experince"];
but I don't want the path string i want the acutall file. how do I get the file itself and how do I attach it to the email
bonus is there a easy way to limit the attachment to .doc / .pdf?