i am attempting to create a career center section of my website. I want users to be able to submit a cover letter and a resume and it submits to an email address ie, careers@whatever.com. i have created the javascript to upload the file however I need it to be sent to the email address along with contact info. here is the code I have wrote to start:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
extArray = new Array( ".pdf", ".doc");
function LimitAttach(form, file) {
allowSubmit = false;
if (!file) return;
while (file.indexOf("\\") != -1)
file = file.slice(file.indexOf("\\") + 1);
ext = file.slice(file.indexOf(".")).toLowerCase();
for (var i = 0; i < extArray.length; i++) {
if (extArray[i] == ext) { allowSubmit = true; break; }
}
if (allowSubmit) form.submit();
else
alert("Please only upload files that end in types: "
+ (extArray.join(" ")) + "\nPlease select a new "
+ "file to upload and submit again.");
}
// End -->
</script>
</HEAD>
<BODY>
<center>
Please upload only files that end in:
<script>
document.write(extArray.join(" "));
</script>
<p>
If the first search link doesn't work automatically, go to the advanced search feature and plug "phpnovice" into the user name field and "file upload" into the search text field.
Bookmarks