$mode = 0;
if ($_POST['mode']) {
$mode = $_POST['mode'];
}
if ($mode == 1) {
$subject = $_POST['subject'];
$phone = $_POST['phone'];
$applicant = $_POST['name'];
$email = $_POST['email'];
$comment = $_POST['comment'];
$captcha = $_POST['captcha'];
if ($captcha != "Custom") {
echo "";
exit();
}
# Upload Resume file
$allowedExts = array("doc", "docx", "pdf", "txt");
$extension = end(explode(".", $_FILES["file"]["name"]));
if (($_FILES["file"]["size"] < 2000000)
&& in_array($extension, $allowedExts)) {
if ($_FILES["file"]["error"] > 0) {
echo "Return Code: " . $_FILES["file"]["error"] . "
";
}else{
echo "Resume: " . $_FILES["file"]["name"] . "
";
echo "Type: " . $_FILES["file"]["type"] . "
";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb
";
echo "Temp file: " . $_FILES["file"]["tmp_name"] . "
";
if (file_exists("upload/" . $_FILES["file"]["name"])) {
echo $_FILES["file"]["name"] . " already exists. ";
}else{
move_uploaded_file($_FILES["file"]["tmp_name"],
"resume/" . $job_id . "_" . $_FILES["file"]["name"]);
$name = "http://www.customcutsconstruction.com/resume/" . $job_id . "_" . $_FILES["file"]["name"];
echo "Stored in: " . "resume/" . $job_id . "_" . $_FILES["file"]["name"];
# $query = "update job_applicant set resumefile='$name' where job_id=$job_id";
# $result = mysql_query($query,$dblink);
# echo "
";
# echo "
Thanks for your submission!
Return";
}
}
}else{
echo "Invalid file! Click Back Button and select a valid file type such as: PDF,DOC,DOCX or TXT";
exit();
}
$headers = 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers.= 'From: ' . $email . "\r\n";
$message = "A resume has been submitted
";
$message.= "Name: ". $applicant ."
";
$message.= "Email: ". $email ."
";
$message.= "Phone: ". $phone ."
";
$message.= "Comment: ". $comment ."
";
$message.= "Resume:
". $name ."";
mail("jlisle@outbacksolutions.com",$subject,$message,
$headers);
flush();
mail("wes@customcutsconstruction.net",$subject,$message,
$headers);
flush();
echo "
";
}else if ($mode == 0) {
?>
![Custom Cuts Construction, General Building Contractor, Inc.](testimonialsr.jpg)
Custom Cuts Construction's aim for our employees is to provide a great
opportunity that matches their qualifications. We are a
fast paced, safety conscious, equal opportunity employer dedicated to
providing an environment where employees are challenged and encouraged to
learn, grow and stay.
Complete the form below and upload your resume, inlcuding a
cover letter.
|
Please complete each of
the required fields and then click "Submit" to send
your request.
Fields marked as
* are required in order to send the resumé. |
|