'; // print_r($_POST); date_default_timezone_set('Asia/Kolkata'); $date = date('d-m-Y H:i:s'); $form_id = $_POST['form_id']; $name = $_POST['name']; $mobile = $_POST['mobile']; $email = $_POST['email']; $amount = $_POST['amount']; $website = $_POST['website']; $business = $_POST['business']; $auth_key = $_POST['auth_key']; $form = $_POST['form_name']; $status = 'Unpaid'; $sql = "INSERT INTO form_pay (auth_key, form_id, name, mobile, email, amount, website, business, form, status, created_date) VALUES ('$auth_key', '$form_id', '$name', '$mobile', '$email', '$amount', '$website', '$business', '$form', '$status', '$date')"; if ($conn->query($sql) === TRUE) { echo "Record inserted successfully"; } else { echo "Error: " . $sql . "
" . $conn->error; } ?>