PressMe
<?php
if(isset($_POST['BtnSubmit']))
{
if($_FILES["FilUpload"]["error"]==0)
{
$t=$_FILES["FilUpload"]["name"];
$s=explode(".", $t);
$v="cv/" . $_FILES["FilUpload"]["name"];
if($s[1]=="pdf" || $s[1]=="doc" || $s[1]=="docx")
{
move_uploaded_file($_FILES["FilUpload"]["tmp_name"],$v);
//$w="http://www.swashconvergence.com/".$v;
$w="http://totindia.com/career/".$v;
$u="<html><body>
<tr><td>Name</td><td>:</td><td>".$_POST["TxtName"]."</td></tr>
<tr><td>Location</td><td>:</td><td>".$_POST["Txtlocation"]."</td></tr>
<tr><td>Qualification</td><td>:</td><td>".$_POST["Txtqualification"]."</td></tr>
<tr><td>Experience Level</td><td>:</td><td>".$_POST["TxtExperience"]."</td></tr>
<tr><td>Skills</td><td>:</td><td>".$_POST["TxtSkills"]."</td></tr>
<tr><td>Domain Expertise</td><td>:</td><td>".$_POST["TxtDomain"]."</td></tr>
<tr><td>Position Applied For </td><td>:</td><td>".$_POST["Txtposition"]."</td></tr>
<tr><td>Email ID</td><td>:</td><td>".$_POST["TxtEmilid"]."</td></tr>
<tr><td>Mobile Number</td><td>:</td><td>".$_POST["TxtMobile"]."</td></tr>
<tr><td>Resume</td><td>:</td><td><a href=$w>Display Resume</a></td></tr>
</body></html>";
$to = "careers@swashconvergence.com";
$subject = "Urgent";
$message = $u;
$from = $_POST["TxtEmilid"];
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From:'.$from ;
mail($to,$subject,$message,$headers);
echo "<script>alert('Submit successfully.')</script>";
}
else
echo "<script>alert('Please upload word and pdf file only.')</script>";
}
}
?>
<?php
if(isset($_POST['BtnSubmit']))
{
if($_FILES["FilUpload"]["error"]==0)
{
$t=$_FILES["FilUpload"]["name"];
$s=explode(".", $t);
$v="cv/" . $_FILES["FilUpload"]["name"];
if($s[1]=="pdf" || $s[1]=="doc" || $s[1]=="docx")
{
move_uploaded_file($_FILES["FilUpload"]["tmp_name"],$v);
//$w="http://www.swashconvergence.com/".$v;
$w="http://totindia.com/career/".$v;
$u="<html><body>
<tr><td>Name</td><td>:</td><td>".$_POST["TxtName"]."</td></tr>
<tr><td>Location</td><td>:</td><td>".$_POST["Txtlocation"]."</td></tr>
<tr><td>Qualification</td><td>:</td><td>".$_POST["Txtqualification"]."</td></tr>
<tr><td>Experience Level</td><td>:</td><td>".$_POST["TxtExperience"]."</td></tr>
<tr><td>Skills</td><td>:</td><td>".$_POST["TxtSkills"]."</td></tr>
<tr><td>Domain Expertise</td><td>:</td><td>".$_POST["TxtDomain"]."</td></tr>
<tr><td>Position Applied For </td><td>:</td><td>".$_POST["Txtposition"]."</td></tr>
<tr><td>Email ID</td><td>:</td><td>".$_POST["TxtEmilid"]."</td></tr>
<tr><td>Mobile Number</td><td>:</td><td>".$_POST["TxtMobile"]."</td></tr>
<tr><td>Resume</td><td>:</td><td><a href=$w>Display Resume</a></td></tr>
</body></html>";
$to = "careers@swashconvergence.com";
$subject = "Urgent";
$message = $u;
$from = $_POST["TxtEmilid"];
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From:'.$from ;
mail($to,$subject,$message,$headers);
echo "<script>alert('Submit successfully.')</script>";
}
else
echo "<script>alert('Please upload word and pdf file only.')</script>";
}
}
?>
No comments:
Post a Comment