require_once('lib/htmlMimeMail.php');
$pagelang = 'English';
$mailto = 'info@networdservices.com';
if (isset($_POST['specialization'])) {
$specialization = $_POST['specialization'];
} else {
$specialization = array();
}
if (isset($_POST['languagepairs'])) {
$languagepairs = $_POST['languagepairs'];
} else {
$languagepairs = array();
}
if ($_POST['Submit'] == 'Submit') {
$name = trim($_POST['name']);
$email = trim($_POST['email']);
$imtype = $_POST['imtype'];
$imnum = trim($_POST['imnum']);
$address1 = trim($_POST['address1']);
$address2 = trim($_POST['address2']);
$address3 = trim($_POST['address3']);
$address4 = trim($_POST['address4']);
$location = $_POST['location'];
$phone1 = trim($_POST['phone1']);
$phone2 = trim($_POST['phone2']);
$school = trim($_POST['school']);
$degree = $_POST['degree'];
$other1 = trim($_POST['other1']);
$other2 = trim($_POST['other2']);
$experience = $_POST['experience'];
$otherlang = trim($_POST['otherlang']);
$rate = trim($_POST['rate']);
$availability = $_POST['availability'];
$desc = trim($_POST['desc']);
if (is_file($_FILES['cv']['tmp_name']) and is_uploaded_file($_FILES['cv']['tmp_name']) and basename($_FILES['cv']['name']) != '' and $_FILES['cv']['size'] > 0) {
$cv = basename($_FILES['cv']['name']);
$cvtmp = $_FILES['cv']['tmp_name'];
} else {
$cv = '';
}
$error = '';
if ($name == '') {
$error = 'Name is required';
} elseif ($email == '') {
$error = 'E-mail address is required';
} elseif ($location == '') {
$error = 'Location is required';
} elseif ($experience == '') {
$error = 'Years of related experience is required';
} elseif (count($specialization) == 0) {
$error = 'Specialization is required';
} elseif (count($languagepairs) == 0) {
$error = 'Language Pairs is required';
} elseif (array_search('Other', $languagepairs) !== FALSE and $otherlang == '') {
$error = 'Other language pair is required';
} elseif ($rate == '') {
$error = 'Per word rate is required';
} elseif ($availability == '') {
$error = 'Availability is required';
} elseif ($cv == '') {
$error = 'CV/Resume is required';
} else {
$mailbody = "Page language: $pagelang\n\n";
$mailbody .= "Name: $name\n";
$mailbody .= "E-mail: $email\n";
$mailbody .= "I/M Type: $imtype\n";
$mailbody .= "I/M Contact Name: $imnum\n";
$mailbody .= "Address line 1: $address1\n";
$mailbody .= "Address line 2: $address2\n";
$mailbody .= "Address line 3: $address3\n";
$mailbody .= "Address line 4: $address4\n";
$mailbody .= "Location: $location\n";
$mailbody .= "Phone 1: $phone1\n";
$mailbody .= "Phone 2: $phone2\n";
$mailbody .= "University/School: $school\n";
$mailbody .= "Degree: $degree\n";
$mailbody .= "Other Qualification 1: $other1\n";
$mailbody .= "Other Qualification 2: $other2\n";
$mailbody .= "Years of Related Experience: $experience\n";
$mailbody .= "Specialization: " . join(', ', $_POST['specialization']) . "\n";
$mailbody .= "Language Pairs: " . join(', ', $_POST['languagepairs']) . "\n";
$mailbody .= "Other Language Pairs: $otherlang\n";
$mailbody .= "Per Word Rate: $rate\n";
$mailbody .= "Availability: $availability\n";
$mailbody .= "\nSelf Description:\n" . str_replace('
', "\n", str_replace("\n", '', str_replace("\r", '', nl2br($desc)))) . "\n";
$mail = new htmlMimeMail();
$attachment = $mail->getFile($cvtmp);
$mail->setTextCharset('utf-8');
$mail->setText($mailbody);
$mail->addAttachment($attachment, $cv);
$mail->setFrom('postmaster@networdservices.com');
$mail->setSubject('Networds Services Job Application Form');
$msg = '';
if (@$mail->send(array($mailto))) {
$msg = 'Thank you for your submission, we will get back to you shortly.';
$name = '';
$email = '';
$imtype = '';
$imnum = '';
$address1 = '';
$address2 = '';
$address3 = '';
$address4 = '';
$location = '';
$phone1 = '';
$phone2 = '';
$school = '';
$degree = '';
$other1 = '';
$other2 = '';
$experience = '';
unset($specialization);
$specialization = array();
unset($languagepairs);
$languagepairs = array();
$otherlang = '';
$rate = '';
$availability = '';
$desc = '';
} else {
$msg = 'The system cannot process your submission at this moment, please try again later.';
}
}
}
?>
Networds Services
 |
|
|
|
 |
|
 |
| Join us, foster growth with us |
|
|
|
| |
Job
Application Form |
|
|
|
Please use this form to apply for the Translator position.
The (*) fields are required
APPLICATIONS WILL NOT BE PROCESSED UNLESS COMPLETE INFORMATION IS RETURNED
|
|
| |
|
|
|
|
|
|
| Copyright 2001-2005 Networds Services. All Rights Reserved. | Terms & Conditions |