thank you

$message_to_show ;

echo $_REQUEST[‘message_to_show’];

//we must add check if order number with the params and /
if (!isset($_REQUEST[‘c_u_name’]) || $_REQUEST[‘c_u_name’] === ”) {
echo ‘Username field is empty’;
} else {
$username = $_REQUEST[‘c_u_name’];

$to = $_REQUEST[’email’];

if($mail_sent == 0){

$message_to_show =’Thank you for registering for the Arabic Language Proficiency Test.
Please contact info@arabacademy.com to schedule the test.
Your username and password will be provided to you by the invigilator on the day of the test.’;

/*$message_to_show = ‘ Your account has been created successfully. And Your current login information is:
your username: ‘ . $username . ‘
your password: ‘ . $username . ‘

You can login
‘;

//$to = $_REQUEST[‘c_u_email’];
$subject = “Arab Academy: ALPT new account personal data”;
$body = “Hi \n\nYour ALPT account at ‘Arab Academy’ has been created successfully.\nYour current login information is:\n username: ” . $username . “\n password: ” . $username . “\n\n Cheers from the ‘Arab Academy’ administrator,”;
$headers = “From: info@arabacademy.com\r\n” .”Bcc: sameh@arabacademy.com, info@arabacademy.com, shaimaa@arabacademy.com”. “\r\n” . “X-Mailer: php”;
if (mail($to, $subject, $body, $headers)) {
//$mail_sent == 1;

$message_to_show = $message_to_show.”

You will receive message with your login information, Please check your Email

“;
} else {
$message_to_show = $message_to_show.”

Message delivery failed…

“;
}
$_REQUEST[‘mail_sent’] = 1;*/
$_REQUEST[“message_to_show”] = $message_to_show;
}
}
?>

Phone: +20 111 670 4021 - +20 111 218 0305
Fax: +20 227955201
3 Alif Kamil El-Shinnawi Street,
Garden City 11451, Cairo , Egypt