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 actual file. How do I get the file itself and how do I attach it to the email?
Also, is there a easy way to limit the attachment to .DOC / .PDF?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…