ok

Mini Shell

Direktori : /home/importfo/public_html/drvidhisphysiotherapy.com/
Upload File :
Current File : /home/importfo/public_html/drvidhisphysiotherapy.com/savecontact.php

<?php 

//echo "Hello";

include("admin/config.php");


    $name = $_POST['name'];
    $email = $_POST['email'];
    $treatment = $_POST['treatment'];
    $contact = $_POST['contact'];
    $message = $_POST['message'];

    $sql = "INSERT INTO `contact` (`name`,`email`,`treatment`,`contact`,`message`) VALUES ('$name', '$email','$treatment','$contact','$message')";

    $res = mysqli_query($db,$sql);

    // header("Location: localhost/drvidhi/drvidhi/html.kodesolution.com/2016/health-zone-html/demo/contact2.php");
    // exit; 
    

    if($res==1)
    {
        header("Location: thankyouPage.php");

        //echo ("<script LANGUAGE='JavaScript'>window.alert('Succesfully added.!!');window.location.href='thankyouPage.php';</script>");
        /*echo "data save";*/
    }
    else
    {
        header("Location: error.php");

       // echo ("<script LANGUAGE='JavaScript'>window.alert('Product Not Added.!!');window.location.href='error.php';</script>");
        /*echo "data Not save";*/
    }




?>

Zerion Mini Shell 1.0