alert("'.$response.'"); window.history.back(); '; } else if ( (isset($_POST['cid']) && $_POST['cid'] != '') && (isset($_POST['type']) && $_POST['type'] == 'final') ) { $cid = $_POST['cid']; $type = $_POST['type']; if ($_SERVER['HTTP_HOST'] == 'localhost') { $url = 'http://localhost/msmebiz.shop/api/set-re-otp.php?type='.$type.'&cid='.$cid.''; } else { $url = 'https://msmebiz.shop/api/set-re-otp.php?type='.$type.'&cid='.$cid.''; } $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-re-otp.php?type='.$type.'&cid='.$cid.''; // } else { // $url = 'https://crm5.in/api/set-re-otp.php?type='.$type.'&cid='.$cid.''; // } // $ch = curl_init(); // curl_setopt($ch, CURLOPT_URL, $url); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // $response = curl_exec($ch); echo ' '; } ?>