include("admin/config/site-includes.php"); if($_POST['mode']=="register") { $fname=$_REQUEST['fname']; $lname=$_REQUEST['lname']; $email=$_REQUEST['email']; $password=$_REQUEST['password']; $country=$_REQUEST['country']; $confirm_code=md5(uniqid(rand())); $sql="insert into tbl_user(register_date, password, first_name, last_name, email, address, city, phone, country, confirm_code) values( ".mktime().", '$password', '$fname', '$lname', '$email', '$address', '$city', '$phone', '$country', '$confirm_code')"; $rs=mysqli_query($conObj, $sql) or die(mysqli_error()); // if suceesfully inserted data into database, send confirmation link to email if($rs){ // ---------------- SEND MAIL FORM ---------------- // send e-mail to ... $to=$email; // Your subject $subject="Your confirmation link"; $message='
Hello '.$fname.', Thank you for registering with ZEB Global Ventures Ltd. Below is a
verification link needed for you to authenticate your Email address.
Please click on the link below to have your account activated. Below are your login details, do ensure that you keep the details confidential and protected. Email Address: '.$email.'
Privileged/Confidential Information is contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to email or messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of ZEB Global Ventures Ltd. shall be understood as neither given nor endorsed by it. |
First Name: | '.$fname.' |
Last Name: | '.$lname.' |
Email: | '.$email.' |
Password: | '.$password.' |
Country: | '.$country.' |
Join Date: | '.date("m-d-Y").' |