include("config/connect.php"); include("classes/adminclass.php"); include("classes/pagecontent.class.php"); include_once('classes/validate.class.php'); include("classes/gallery.class.php"); $msg = ""; $pageObj = new pagecontent; $pagId = isset($_GET['pid'])? $_GET['pid'] : 76; $exist = $pageObj->pageExist($pagId); if($exist==0) { header("Location:index.php"); } $pag = $pageObj->pageSelectById($pagId); $row = mysql_fetch_array($pag,MYSQL_NUM); $objGallery = new Gallery; $galleryRec = $objGallery->getAllGalleries(); /* C A P T C H A Settings */ require "securityImageClass.php"; $si = new securityImage(); $si->setFontColor("GGGGGG"); $si->setFontSize(12); $si->setCodeLength(5); $si->inputParam = "style='color:blue;'"; /*******************************/ if(isset($_POST['Submit'])&&$_POST['Submit']) { $sql = "INSERT INTO `contacts` ( `con_id` , `con_name` , `con_address` , `con_mail` , `con_message` , `con_country` , `con_mobile` ) VALUES ( NULL , '".$_POST['name']."', '".$_POST['address']."','".$_POST['email']."', '".$_POST['message']."', '".$_POST['country']."', '".$_POST['mobile']."' )"; $res = mysql_query($sql); if ($si->isValid()) { } else { $errors[] = " Incorrect Security Code"; } $message ='
Galaxy Contacts |
|
| Name | '.$_POST['name'].' |
| '.$_POST['email'].' | |
| Country | '.$_POST['country'].' |
| Mobile | '.$_POST['mobile'].' |
Message |
|
| '.$_POST['message'].' | |
|
|||||||||||
| include("bottam_inc.php");?> |