include_once 'databaseConn.php'; include_once './lib/requestHandler.php'; $DatabaseCo = new DatabaseConn(); include_once './class/Config.class.php'; $configObj = new Config(); $status = ''; if ( isset($_POST['captcha']) && ($_POST['captcha']!="") ){ // Validation: Checking entered captcha code with the generated captcha code if(strcasecmp($_SESSION['captcha'], $_POST['captcha']) != 0){ // Note: the captcha code is compared case insensitively. // if you want case sensitive match, check above with strcmp() //$status = "

Entered captcha code does not match! Kindly try again.

"; echo ""; echo ""; }else{ $name=$_POST['txt_name']; $to=$_POST['txt_email']; $mobile=$_POST['phone_no']; $subject1=$_POST['subject']; $description=$_POST['description']; $date = date('Y-m-d H:i:s'); $SQL_CONTACT=$DatabaseCo->dbLink->query("INSERT INTO `contactus` (`name`, `email`, `mobile`, `subject`, `description`, `date`) VALUES ('".$name."','".$to."','".$mobile."','".$subject1."','".$description."','".$date."')"); echo ""; echo ""; } } ?>