include_once('config.inc.php');
$sess_id = session_id();
$name = $_POST['name'];
$coname = $_POST['company'];
$phone = $_POST['phone'];
$fax = $_POST['fax'];
$address = $_POST['address'];
$city = $_POST['city'];
$country = $_POST['country'];
$email_address = $_POST['email'];
$detail = $_POST['detail'];
//$detail = $_REQUEST['detail'];
$ip=$_SERVER['REMOTE_ADDR'];
$time= time();
$inq_cart_rs = mysql_query("select * from inquiry_cart, products where inquiry_cart.prdid = products.prdid AND inquiry_cart.session_id = '$sess_id'");
while($inq_cart = mysql_fetch_array($inq_cart_rs)){
extract($inq_cart);
$selected_arts .= $art_no ." (Qty: $quantity) , ";
}
$email_body = "Hi, Following Customer had placed an inqury";
$email_body .= "Name: $name
Email: $email
Company Name: $coname
Phone No: $phone
Fax No: $fax
Address: $address
City: $city
Country: $country
E-Mail: $email_address
Detail: $detail
IP:$ip
Date/Time:- ".date('d/m/Y, g:i a',$time)."
";
$email_body .= "Following is Inquiry Detail
";
$email_body .= $selected_arts;
$email_to = "info@theleatherartisan.com, inam9093@hotmail.com";
$email_subject = "New Inquiry Notice";
$headers = "MIME-Version: 1.0 \r\n";
$headers .= "Content-type: text/html; Charset=ISO-8859-1 \r\n";
$headers .= "FROM: $name <$email> \r\n";
$headers .= "Reply-To: $email \r\n";
$headers .= "cc: sales@theleatherartisan.com";
mail($email_to, $email_subject, $email_body, $headers);
$about_rs = mysql_query('select * from about_cont') or die(mysql_error());
$about = mysql_fetch_array($about_rs);
$about_id = $about['id'];
// for menu
$maincat_rs1 = mysql_query("select * from main_cats where main_cat_id='$cur_sub_cat_id'") or die(mysql_error());
$main_cats1 = mysql_fetch_array($maincat_rs1);
$mymaincatdes=$main_cats1['caption'];
// end for menu
?>
|
|||||||||||||||||||||||||||||||||
| include_once("bottom.php") ?> | |||||||||||||||||||||||||||||||||