Something went wrong. Try again.
CarGo is an aggregator service that connects people who drive the way, with those who are interested in having a shared trip; thereby actin…
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364<html> <head> <title>Send OTP</title> </head> <body> <form method="post"> <label>Mobile Number.</label> <input type="text" name="mobile_no" id="mobilr_no" maxlength="15"> <input type="submit" id="btnSend" name="btnSend" value="Submit"> </form> </body></html>
<?phpif (isset($_POST['btnSend'])) { $mobileNumber = '91' . $_POST['mobile_no']; $otp = mt_rand(99999, 999999);
$otp_msg = "Dear Customer, Please enter the One Time Password (OTP) to continue CarGo Carpool Registration. Your OTP verification code is " . $otp;
echo '<br/><br/><br/>'.$otp_msg.'<br/><br/><br/>'; //Your authentication key $authKey = "290224AwtzqyenfcnQ5d5addbd";
//Sender ID,While using route4 sender id should be 6 characters long. $senderId = "xCARGO";
//Your message to send, Add URL encoding here. $message = urlencode($otp_msg);
//API URL $url = "http://api.msg91.com/api/sendotp.php?authkey=" . $authKey . "&mobile=" . $mobileNumber . "&message=" . $otp_msg . "&sender=" . $senderId . "&otp=" . $otp; // init the resource $ch = curl_init(); curl_setopt_array($ch, array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, // CURLOPT_POSTFIELDS => $postData //,CURLOPT_FOLLOWLOCATION => true ));
//Ignore SSL certificate verification curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
//get response $output = curl_exec($ch);
//Print error if any if (curl_errno($ch)) { echo 'error:' . curl_error($ch); }
echo $output;
curl_close($ch);}?>