Forum Moderators: coopster
At the moment I have a button that when pressed, javascript unhides a div section and places HTML in that div. This div is an email form which includes the ability to add a file to upload (a resume). When a user submits this form, javascript goes through and validates everything. Then it passes the variables to a PHP script via:
window.location.href="php/resumeEmail.php?name=" + name + "&job=" + job + "&email=" + email + "&resume=" + resume + "&message=" + message;
The PHP script uses $_GET to recieve these variables. The email section of the script is working fine, but I cant get the PHP script to upload the resume which is the file the user needs to upload. Normally I would use $_FILES to upload a file but this seems to only work if you go from the html form to the php script, not through javascript.
Is there anyway of getting something like this to work, or am I going to have to create the div in php instead of javascript.
Thanks for your help