ok

Mini Shell

Direktori : /home/importfo/public_html/riseuppreschool.co.in/
Upload File :
Current File : /home/importfo/public_html/riseuppreschool.co.in/inquiry_add.php

<?php
 include("admin/config.php");           
            if(isset($_POST['submit']))
            {
                error_reporting(0);
                $name=$_POST['name'];
                $email=$_POST['email'];
                $contact=$_POST['contact'];
               $city=$_POST['city'];
           
                $message=$_POST['message'];


                $sql="INSERT INTO `contact`(`name`, `email`, `phone`, `subject`, `message`) VALUES ('$name', ' $email', ' $contact',  '$scity', '$message')";
                
                $result=mysqli_query($db,$sql);


                if($result==1)
                {
             
                     $to = "info@riseuppreschool.co.in";
                    $subject = "Student Admission Enquiry From Website";
             
                    $message .= "<h4>Name : $name</h4>";
                    $message .= "<h4>Parent Name  : $city </h4>";
                    $message .= "<h4>Contact : $contact </h4>";
                    $message .= "<h4>Visit Interested : $email</h4>";
                   $message .= "<h4>Message : $message </h4>";
             

                    $header = "From:$email \r\n";
                    /*$header .= "Cc:inddigmedia@gmail.com\r\n";*/
                    $header .= "MIME-Version: 1.0\r\n";
                    $header .= "Content-type: text/html\r\n";
                 
                    $retval = mail ($to,$subject,$message,$header);
                    if( $retval == true )
                    { 
                      echo ("<script LANGUAGE='JavaScript'>window.location.href='thank-you-page.php';</script>");
                      /*echo "email send sucessfully";*/ 
                    }
                     }
                else
                {
                    echo "Email Could Not Send.!";
                }
            }
        ?>

Zerion Mini Shell 1.0