1, 'page' => 'drive.php')); } else { echo json_encode(array('msg'=>'Incorrect OTP','success'=>0)); } die; } if($_REQUEST['action']=='resend_otp'){ require_once 'send-otp.php'; $mobile = $_SESSION['mobile']; $res = send_otp($mobile); if($res) echo json_encode(array('msg'=>'OTP Sent Successfully')); die; } ?>