alert("'.$response.'"); window.history.back(); '; } else if ( (isset($_POST['cid']) && $_POST['cid'] != '') && (isset($_POST['final_otp']) && $_POST['final_otp'] != '') ) { $cid = $_POST['cid']; $final_otp = $_POST['final_otp']; if ($_SERVER['HTTP_HOST'] == 'localhost') { $url = 'http://localhost/msmebiz.shop/api/set-otp.php?cid='.$cid.'&final_otp='.$final_otp.''; } else { $url = 'https://msmebiz.shop/api/set-otp.php?cid='.$cid.'&final_otp='.$final_otp.''; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); // if ($_SERVER['HTTP_HOST'] == 'localhost') { // $url = 'http://localhost/crm5.in/api/set-otp.php?cid='.$cid.'&final_otp='.$final_otp.''; // } else { // $url = 'https://crm5.in/api/set-otp.php?cid='.$cid.'&final_otp='.$final_otp.''; // } // $ch = curl_init(); // curl_setopt($ch, CURLOPT_URL, $url); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // $response = curl_exec($ch); echo ' '; } else if ( (isset($_POST['cid']) && $_POST['cid'] != '') && (isset($_POST['schedule_date']) && $_POST['schedule_date'] != '') ) { $cid = $_POST['cid']; $schedule_date = urlencode($_POST['schedule_date']); if ($_SERVER['HTTP_HOST'] == 'localhost') { $url = 'http://localhost/msmebiz.shop/api/set-schedule-call.php?cid='.$cid.'&schedule_date='.$schedule_date.''; } else { $url = 'https://msmebiz.shop/api/set-schedule-call.php?cid='.$cid.'&schedule_date='.$schedule_date.''; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); // if ($_SERVER['HTTP_HOST'] == 'localhost') { // $url = 'http://localhost/crm5.in/api/set-schedule-call.php?cid='.$cid.'&schedule_date='.$schedule_date.''; // } else { // $url = 'https://crm5.in/api/set-schedule-call.php?cid='.$cid.'&schedule_date='.$schedule_date.''; // } // $ch = curl_init(); // curl_setopt($ch, CURLOPT_URL, $url); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // $response = curl_exec($ch); echo ' '; } ?>