ob_start();
require_once("config/functions.inc.php");
$pageArr=explode("/",$_SERVER['REQUEST_URI']);
$page_name=$pageArr[2];
$content_qry=mysql_fetch_array(mysql_query("select * from content where page='".$_GET['page']."'"))or die(mysql_error());
if(isset($_POST['Submit2'])){
$subject = 'Enquiry from Website';
$message = '
Hi,
We have just received a new application.
Name |
: |
'.$_POST['name'].' |
Iteneries Name |
: |
'.$_POST['ite'].' |
E-mail |
: |
'.$_POST['email'].' |
Contact No. |
: |
'.$_POST['mobile'].' |
Date : |
: |
'.$_POST['from'].' |
Address |
: |
'.$_POST['Address'].' |
Message |
: |
'.stripslashes($_POST['why']).' |
';
$headers .= 'From: '.$_POST['name'].'<'.$_POST['email'].'>'."\r\n";
// Add boundary string and mime type specification
$to='kashijourneys@gmail.com';
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
if (@mail($to, $subject, $message, $headers))
{
?>
}
@mail('kashijourneys@gmail.com', $subject, $message, $headers);
$_SESSION['message']='Thanks for contacting.
Your request has been sent successfully.';
//header("location:index.php");
//exit();
}
$content_qry1=mysql_fetch_array(mysql_query("select * from new_collection1 where id='".$_GET['id']."'"));
//echo $_SESSION['message'];
?>
echo normal_filter($content_qry['page_title']);?>
echo normal_filter($content_qry['content']);?>