<html>
<head>
</head>
<body>
<fieldset><legend>Sollicitatie</span></legend>
<!--begin:notice message block-->
<div id="note"></div>
<!--begin:notice message block-->
<form id="ajax-contact-form" method="post" ENCTYPE="multipart/form-data" action="index.php" action="javascript:alert('success!');">
<center><p><font color="red">* required fields</font></p></center>
<label>Function</label>
<select name="Function">
<option value="Worker">Worker</option>
<option value="Handy Man">Handy Man</option>
<option value="Cleaning lady/Cleaner">Cleaning lady/Cleaner</option>
<option value="Site leader for renovation works">Site leader for renovation works</option>
<option value="Administrative employee">Administrative employee</option>
<option value="Crane driver">Crane driver</option>
<option value="Room maids">Room maids</option>
<option value="Sales Representatives">Sales Representatives</option>
</select><br />
<label>Name <font color="red">*</font></label><input class="required inpt" type="text" name="name" value="" /><br />
<input type="radio" name="sex" value="male" /> Male<br />
<input type="radio" name="sex" value="female" /> Female<br />
<label>Address</label><font color="red">*</font><input type="text" name="Address" value="" /><br />
<label>Code Postal<font color="red">*</font></label><input class="required inpt" type="text" name="Code Postal" value="" /><br />
<label>City<font color="red">*</font></label><input class="required inpt" type="text" name="city" value="" /><br />
<label>Phone <font color="red">*</font></label><input class="required inpt" type="text" name="phone" value="" /><br />
<label>E-Mail<font color="red">*</font></label><input class="required inpt" type="text" name="email" value="" /><br />
<label>Driving license</label><font color="red">*</font><input class="required input type="text" name="Driving license" value="" /><br />
<label>Experiance</label><input class="required input type="text" name="Experiance" value="" /><br />
<label>Nationality</label><font color="red">*</font><input class="required input type="text" name="Nationality" value="" /><br />
<label>Languages</label><font color="red">*</font><input class="required input type="text" name="Languages" value="" /><br />
Curriculum Vitae <INPUT TYPE=FILE NAME="upfile"><BR>
<INPUT TYPE=SUBMIT VALUE="Submit">
</form>
</body>
</html>
<?php
// Receiving variables
@$Code_Postal = addslashes($_POST['Code_Postal']); @$Driving_license = addslashes($_POST['Driving_license']); @$Nationality = addslashes($_POST['Nationality']); @$upfile_Name = $_FILES['upfile']['name'];
@$upfile_Size = $_FILES['upfile']['size'];
@$upfile_Temp = $_FILES['upfile']['tmp_name'];
@$upfile_Mime_Type = $_FILES['upfile']['type'];
function RecursiveMkdir($path)
{
{
}
}
// Validation
{
die("<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid sex</font></p>"); }
if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $email)) {
die("<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid email</font></p>"); }
if( $upfile_Size == 0)
{
die("<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid upfile</font></p>"); }
if( $upfile_Size >50000000)
{
//delete file
die("<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid upfile</font></p>"); }
if( $upfile_Mime_Type != "image/gif" AND $upfile_Mime_Type != "image/pjpeg" AND $upfile_Mime_Type != "image/jpeg" AND $upfile_Mime_Type != "image/png" AND $upfile_Mime_Type != "image/tiff" AND $upfile_Mime_Type != "text/" )
{
die("<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid upfile</font></p>"); }
$uploadFile = $upfile_Name ;
{
@RecursiveMkdir
(dirname($uploadFile)); }
else
{
}
chmod($uploadFile, 0644); $upfile_URL = "http://www.orisma.com.tr/uplfile/".$upfile_Name ;
//Sending Email to form owner
$pfw_header = "From: $email\n"
. "Reply-To: $email\n";
$pfw_subject = "Curriculum Vitae";
$pfw_email_to = "info@orisma.com.tr";
$pfw_message = "Function: $Function\n"
. "name: $name\n"
. "sex: $sex\n"
. "Address: $Address\n"
. "Code_Postal: $Code_Postal\n"
. "city: $city\n"
. "phone: $phone\n"
. "email: $email\n"
. "Driving_license: $Driving_license\n"
. "Experiance: $Experiance\n"
. "Nationality: $Nationality\n"
. "Languages: $Languages\n"
. "upfile: $upfile_URL\n";
@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
echo("<p align='center'><font face='Arial' size='3' color='#FF0000'>Thank you, we have received your message</font></p>"); ?>