$orders="active"; $caller1="open"; $sid_cash="active"; ?> require_once '../template/superadmin/action_connection.php' ; include("../settings/adminsession.php"); include '../../include/conf.php'; session_start(); if($_REQUEST['idsd']!='') { $ids=$_REQUEST['idsd']; // $ids1=$_REQUEST['status']; //$Query="DELETE FROM tbl_confirmorder WHERE `orid`='".$_REQUEST['idsd']."'"; $get_ref = mysqli_query($conn, "select * from tbl_confirmorder where orderid='$ids'"); $set_ref = mysqli_fetch_array($get_ref, MYSQLI_ASSOC); $orderid_new_s = $set_ref['refid']; $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://drganbuganapathi.com/superadmin/order-admin/phpaction/test_ajax_api.php', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 3, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>'{ "refid" : "'.$orderid_new_s.'" }', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json' ), )); curl_exec($curl); curl_close($curl); $Query="update tbl_confirmorder set `orderstatus` = '90' where `orid`='".$_REQUEST['idsd']."'"; $DB->query($Query); header("location:view_order_sp.php"); } ?> if(isset($_POST['submit'])){//to run PHP script on submit if(!empty($_POST['check_list'])){ // Loop to store and display values of individual checked checkbox. $man='0'; $ttt="sacpara21@gmail.com"; foreach($_POST['check_list'] as $selected_view ) { $input = "$selected_view "; list($selected, $bdfffff) = explode('_', $input); echo $selected; // "5" $bdfffff; // "8" } } } ?>