<%>PH P<%> require 'manager/PHPMailer-master/PHPMailerAutoload.php'; if(isset($_GET['Submit1'])) { if ($_GET['Submit1']=='Submit Application'){ if ($_GET['captcha']!=11) { echo ''; } //localStorage.setItem('TempStorage', ); //$stringggg= ""; //echo $stringggg; if ($_GET['sex']==1){$sex='Female';}else{$sex='Male';} $education='-'; if ($_GET['education']==1){$education='Bac I';} if ($_GET['education']==2){$education='Bac II';} if ($_GET['education']==3){$education='TS';} if ($_GET['education']==4){$education='College';} if ($_GET['education']==5){$education='University';} //com $estatus='-'; if ($_GET['estatus']==1){$estatus='Employed';}elseif($_GET['estatus']==2){$estatus='Not Employed';}; $securityc='-'; if ($_GET['securityc']==1){$securityc='Yes';} if ($_GET['securityc']==2){$securityc='No';} $mailbody='


Continuing Education Department

Enrollment Application

First Name : '.$_GET['fname'].'  
Last Name : '.$_GET['lname'].' 
Course Name : '.$_GET['fname'].' 
Gender: '.$sex.'  
Date of Birth : '.$_GET['birthday_day'].'/'.$_GET['birthday_month'].'/'.$_GET['birthday_year'].' 
Nationality : '.$_GET['nationality'].' 
Education : '.$education.' 
School/University name: '.$_GET['schoolname'].' 
Graduation Date '.$_GET['graduation_month'].'/'.$_GET['graduation_year'].' 
Employment Status : '.$estatus.' 
Position(if applicable): '.$_GET['position'].' 
Previous Experience(if applicable): '.$_GET['prevexperience'].' 
Have you attended any security courses: '.$securityc.' 
If yes : enter course name '.$_GET['securitycname'].' 
Reason for applying for this course: '.$_GET['reason'].' 
How did you hear about us?: '.$_GET['hearaboutus'].' 
'; echo $mailbody; $mail = new PHPMailer(true); $mail->isSMTP(); // Set mailer to use SMTP $mail->SMTPDebug = 0 ; $mail->Host = 'pod51048.outlook.com'; // Specify main and backup server $mail->SMTPAuth = true; $mail->Port = 25; // Enable SMTP authentication $mail->Username = 'mghzayel@mubs.edu.lb'; // SMTP username $mail->Password = 'iphone5Siphone5S'; // SMTP password $mail->SMTPSecure = "tls"; // Enable encryption, ,tls,'ssl' also accepted $mail->From = 'mghzayel@mubs.edu.lb'; $mail->FromName = 'Mohamed Ghzayel'; //$mail->addAddress('mghzayel@mubs.edu.lb'); // Name is optional $mail->addAddress('smerhi@mubs.edu.lb'); // Name is optional //$mail->addCC('smerhi@mubs.edu.lb'); //$mail->addCC('mghzayel@mubs.edu.lb'); $mail->addBCC('mghzayel@mubs.edu.lb'); //$mail->addCC('smerhi@mubs.edu.lb');//$mail->addBCC('bcc@example.com');//$mail->addReplyTo('info@example.com', 'Information'); //$mail->WordWrap = 50; // Set word wrap to 50 characters //$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments $mail->isHTML(true); // Set email format to HTML $mail->Subject = 'Continuing Education Department-Enrollment Application'; $mail->Body=$mailbody; $mail->AltBody = 'There is An error Occured '; try { $mail->Send(); echo ''; //echo "Message Sent OK

\n"; } catch (phpmailerException $e) { //echo $e->errorMessage(); //Pretty error messages from PHPMailer } catch (Exception $e) { echo $e->getMessage(); //Boring error messages from anything else! } /* if(!$mail->send()) { echo 'Message could not be sent.'; echo 'Mailer Error: ' . $mail->ErrorInfo; exit; }else{echo '';} */ // echo $mailbody.'







'; //double dimension array for answers will be created here } } ?> MUBS - Enrollment Form


Continuing Education Department

Enrollment Application

First Name :
Last Name :
Course Name :
Gender:
Date of Birth :
Nationality :
Education :



School/University name:
Graduation Date
Employment Status :
Position(if applicable):
Previous Experience(if applicable):
Have you attended any security courses:
If yes : enter course name
Reason for applying for this course:
How did you hear about us?:





solve this equation : 15+3-7=