MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.68
Web Server : Apache
System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : imyrqtmy ( 2189)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/imyrqtmy/public_html/ayusshiherbs/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/public_html/ayusshiherbs/add_check.php
<?php

session_start();
$se = $_SESSION["id"];
if (!isset($_SESSION['id'])) {
    header("Location: login.php");
}
include("admin/includes/config.php");

if(isset($_POST['add_check'])){

    $user_id = $_SESSION['id'];
    // $user_id = ($_POST['user_id']);
    $name = ($_POST['name']);
    $mobile = ($_POST['mobile']);
    $pincode = ($_POST['pincode']);
    $city = ($_POST['city']);
    $district = ($_POST['district']);

    $state = ($_POST['state']);
    $email = ($_POST['email']);
    $address = ($_POST['address']);
    $landmark = ($_POST['landmark']);
    $alt_mobile = ($_POST['alt_mobile']);
    $locality = ($_POST['locality']);


    $query = "INSERT INTO user_address (user_id, name, mobile, email, pincode, city, district, state, address, landmark, alt_mobile, locality ) VALUES ( '$user_id', '$name','$mobile','$email','$pincode','$city','$district','$state','$address','$landmark','$alt_mobile', '$locality')";
        $query_run = mysqli_query($conn, $query);

    if($query_run){
        // $last_id = $conn->insert_id;
        $_SESSION['status'] = "billing detail added Successfully";
        header('Location: check_produc.php');
    }
    else{
        $_SESSION['status'] = "Not Register";
        header('Location: checkout.php');
    }
}           
 









    



MMCT - 2023