芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/starckex.com/rider/index.php
is_logged_in()!="") // { // $reg_user->redirect('index.php'); // } if(isset($_POST['btn-signup'])) { //$msg_id = trim($_POST['msg_id']); $first_name = trim($_POST['first_name']); $last_name = trim($_POST['last_name']); $email = trim($_POST['email']); $phone = trim($_POST['phone']); $location = trim($_POST['location']); $stmt = $reg_user->runQuery("SELECT * FROM tbl_stk_riders_info WHERE email=:email_id"); $stmt->execute(array(":email_id"=>$email)); $row = $stmt->fetch(PDO::FETCH_ASSOC); if($stmt->rowCount() > 0) { $msg = "
Sorry !
You are already registered as a Rider, Go Back
Home
"; } else { if($reg_user->register($first_name,$last_name,$email,$phone,$location)) { $id = $reg_user->lasdID(); $key = base64_encode($id); $id = $key; $message = " Hello $fname,
Thank you for your interest in being a rider at Starckex Delivery Service
An Account Executive will contact you shortly with more information.
Looking forward to having you onboard.
Thanks,Support Team
Registered by:
$first_name $last_name,
Phone Number:
$phone
Location:
$location
Email Adress:
$email
"; $subject = "Hello there Potential Rider! | Registration Succesful"; $reg_user->send_mail($email,$message,$subject); $msg = "
×
Success!
We've sent an email to $email. Please hold on a bit as we contact you.
"; header("Location: confirmation.php"); } else { echo "sorry , Query could no execute..."; } } } ?>
Become a Rider - StarckEx
Become a Rider
By signing up, you agree to the
Our Rider Term of Service