CAM Online Registration
1)){ $reference_no = str_pad($reference_no, 4, "0", STR_PAD_LEFT); //echo " $eml - $reference_no "; $prefix = 'CAM-OR-03-'; $agent = getenv('HTTP_USER_AGENT'); $ip = getenv('REMOTE_ADDR'); $masa = date("d.M.Y H:i:s", time()); $mailMsg = "\r\n"; $mailMsg .= " CAM Online Registration Form \r\n\r\n"; $mailMsg .= " Reference No. : $prefix$reference_no \r\n"; $mailMsg .= " Registration Date : $masa \r\n\r\n"; $mailMsg .= " First Name : $fname \r\n"; $mailMsg .= " Last Name : $lname \r\n"; $mailMsg .= " Gender : $gender \r\n"; $mailMsg .= " Date Of Birth : $dd-$mm-$yyyy (dd-mm-yyyy)\r\n"; $mailMsg .= " Course : $course \r\n"; $mailMsg .= " Centre : $centre \r\n"; $mailMsg .= " Country : $country \r\n"; $mailMsg .= " Valid Email Address : $email \r\n\r\n"; $student_mail .= $mailMsg; $student_mail .= " Dear Candidate, \r\n\r\n"; $student_mail .= " Your online application has been received and will be processed within the next five (5) working days. \r\n\r\n"; $student_mail .= " Please contact your Approved Centre on your status and registration details for online verification. \r\n\r\n"; $student_mail .= " Thank You. \r\n\r\n"; $student_mail .= " Academic Registrar, \r\n"; $student_mail .= " Cambridge Association Of Managers. \r\n\r\n"; $student_mail .= " -------------------------------------------------- \r\n"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: admin@cam-uk.org\r\n"; $headers .= "Reply-To: admin@cam-uk.org\r\n"; //$headers .= "Cc: info@abc.com\r\n"; //echo nl2br($student_mail); mail($email, "CAM Online Registration", nl2br($student_mail), $headers); $mailMsg .= " IP : $ip \r\n\r\n"; $mailMsg .= " -------------------------------------------------- \r\n"; $to = "admin@cam-uk.org"; /////$to = "allan@abc.com"; mail($to, "CAM Online Registration", nl2br($mailMsg), $headers); $sql = "INSERT INTO online_reg ( fname, lname, gender, dob, course, centre, country, email, prefix, reference_no, date_register, ip ) VALUES ( '$fname', '$lname', '$gender', '$yyyy-$mm-$dd', '$course', '$centre', '$country', '$email', '$prefix', '$reference_no', now(), '$ip' )"; @mysql_query($sql); }else{ $err = "




You have already registered !!




"; } if (($Submit) && ($err == "")) { ?>




Thank you for your registration.





* Please Complete Personal Detail Below: -
First Name :
Last Name :
Gender :
Date Of Birth : / /
Course :
Centre :
Country :
Valid Email Address :
 

 
 
 
   

Copyright 2014. The Cambridge Association of Managers.