korsygfhghgfhfghfghfghfghghgfhgfh
Elefghfghfghfhfghfghhhhhfghfghfghff
/
home1
/
alpschoo
/
www
/
Upload FileeE
HOME
<?php if(isset($_POST['submit'])) { $txtname=$_POST['txtname']; $txtcourse=$_POST['txtcourse']; $txtdob=$_POST['txtdob']; $txtsex=$_POST['txtsex']; $txtnat=$_POST['txtnat']; $txtlankn=$_POST['languages']; $txtmot=$_POST['txtmot']; $txtpreaddress=$_POST['txtpreaddress']; $txtperaddress1=$_POST['txtperaddress1']; $txtrel=$_POST['txtrel']; $txtcom=$_POST['txtcom']; $txtstat=$_POST['txtstat']; $txtsub=$_POST['txtsub']; $txtmail=$_POST['txtmail']; $txtfphone=$_POST['txtfphone']; $to='alphonsaschool@gmail.com'; // TO MAIL ID // $to='info@alphonsaschool.org'; $subject='Career Application Form '; $email='alpschoo@alphschool.org'; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Create email headers $headers .= 'From: '.$email."\r\n". 'Reply-To: '.$email."\r\n" . 'X-Mailer: PHP/' . phpversion(); // Compose a simple HTML email message $message = '<html><body>'; $message .= '<h1 style="color:#f40;">Online Career Application Form</h1>'; $message .= '<table > <tr><td colspan=""><strong>Course Name</strong></td><td>'.$txtcourse.'</td></tr> <tr><td><strong>Applicant Name</strong></td><td>'.$txtname.'</td></tr> <tr><td><strong>Date of Birth</strong></td><td>'.$txtdob.'</td></tr> <tr><td><strong>Languages Known</strong></td><td>'.$txtlankn.'</td></tr> <tr><td><strong>Mother Tongue</strong></td><td>'.$txtmot.'</td></tr> <tr><td><strong>Present Address</strong></td><td>'.$txtpreaddress.'</td></tr> <tr><td><strong>Religion</strong> : </td><td>'.$txtrel.'</td></tr> <tr><td><strong>Communtity</strong> :</td><td>'.$txtcom.'</td></tr> <tr><td><strong>Marial Status</strong> :</td><td>'.$txtstat.'</td></tr> <tr><td><strong>Subject prefered to Teach</strong></td><td>'.$txtsub.'</td></tr> <tr><td><strong>Email</strong> :</td><td>'.$txtmail.'</td></tr> <tr><td><strong>Phone Number</strong> :</td><td>'.$txtfphone.'</td></tr> <tr><td><strong>Permanant Address</strong> :</td><td>'.$txtperaddress1.'</td></tr> <tr></tr> <tr></tr> <tr><table width="100%" border="1" cellspacing="0" cellpadding="5" style="border-collapse: collapse; text-align:center;"> <tr><td colspan=5><strong>Academic Information </strong>:</td></tr> <tr> <td ><strong>S.No</strong></td> <td ><strong>Qualification</strong></td> <td ><strong>Name of Institute</strong></td> <td ><strong>year of passing</strong></td> <td ><strong>Marks Percentage</strong></td></tr> <tr><td>'.$_POST['txtno'][0].'</td> <td>'.$_POST['txtqua'][0].'</td> <td>'.$_POST['txtins'][0].'</td> <td>'.$_POST['txtypass'][0].'</td> <td>'.$_POST['txtmark'][0].'</td></tr> <tr><td>'.$_POST['txtno'][1].'</td> <td>'.$_POST['txtqua'][1].'</td> <td>'.$_POST['txtins'][1].'</td> <td>'.$_POST['txtypass'][1].'</td> <td>'.$_POST['txtmark'][1].'</td></tr> <tr><td>'.$_POST['txtno'][2].'</td> <td>'.$_POST['txtqua'][2].'</td> <td>'.$_POST['txtins'][2].'</td> <td>'.$_POST['txtypass'][2].'</td> <td>'.$_POST['txtmark'][2].'</td></tr> <tr><td>'.$_POST['txtno'][3].'</td> <td>'.$_POST['txtqua'][3].'</td> <td>'.$_POST['txtins'][3].'</td> <td>'.$_POST['txtypass'][3].'</td> <td>'.$_POST['txtmark'][3].'</td></tr> </table></tr> <br /> <tr><table width="100%" border="1" cellspacing="0" cellpadding="5" style="border-collapse: collapse; text-align:center;"><tr> <tr><td colspan=5><strong>Professional Qualification</strong></td></tr> <td ><strong>S.No</strong></td> <td ><strong>Qualification</strong></td> <td ><strong>Name of Institute</strong></td> <td ><strong>year of passing</strong></td> <td ><strong>Marks Percentage</strong></td></tr> <tr><td>'.$_POST['txtno1'][0].'</td> <td>'.$_POST['txtqua1'][0].'</td> <td>'.$_POST['txtins1'][0].'</td> <td>'.$_POST['txtypass1'][0].'</td> <td>'.$_POST['txtmark1'][0].'</td></tr> <tr><td>'.$_POST['txtno1'][1].'</td> <td>'.$_POST['txtqua1'][1].'</td> <td>'.$_POST['txtins1'][1].'</td> <td>'.$_POST['txtypass1'][1].'</td> <td>'.$_POST['txtmark1'][1].'</td></tr> <tr><td>'.$_POST['txtno1'][2].'</td> <td>'.$_POST['txtqua1'][2].'</td> <td>'.$_POST['txtins1'][2].'</td> <td>'.$_POST['txtypass1'][2].'</td> <td>'.$_POST['txtmark1'][2].'</td></tr> <tr><td>'.$_POST['txtno1'][3].'</td> <td>'.$_POST['txtqua1'][3].'</td> <td>'.$_POST['txtins1'][3].'</td> <td>'.$_POST['txtypass1'][3].'</td> <td>'.$_POST['txtmark1'][3].'</td></tr> </table></tr> <tr><td><p>Special Talents'.$_POST['txtcomments'].'</p></td></tr> <br /> <br /> </table>'; $message .= '</body></html>'; //echo $message; //exit; // Sending email //echo $message; if(mail($to, $subject, $message, $headers)) { echo ("<SCRIPT LANGUAGE='JavaScript'> window.alert('Message Has been send Successfully ') window.location.href='index.php'; </SCRIPT>"); } else { echo 'Unable to send email. Please try again.'; } } ?>