inquire

= 1) { $qry = "SELECT * FROM books WHERE BookNumber = " . $item; if(!($sqlres = mysql_query($qry, $sock))){ include($commonpath . "close.php"); } if(!($bookrow = mysql_fetch_array($sqlres))) { $item = 0; $bookrow = array(); } mysql_free_result($sqlres); } if($action == "postinquiry") { if((substr_count($c_lastname . $c_firstname . $c_address . $c_town . $c_state . $c_zipcode . $c_country . $c_email . $c_tel . $c_fax . $c_inquirymsg, "http") >= 1) || (substr_count($c_lastname . $c_firstname . $c_address . $c_town . $c_state . $c_zipcode . $c_country . $c_email . $c_tel . $c_fax . $c_inquirymsg, "rgergerger") >= 1) || (substr_count($c_lastname . $c_firstname . $c_address . $c_town . $c_state . $c_zipcode . $c_country . $c_email . $c_tel . $c_fax . $c_inquirymsg, "1") >= 1) || (substr_count($c_lastname . $c_firstname . $c_address . $c_town . $c_state . $c_zipcode . $c_country . $c_email . $c_tel . $c_fax . $c_inquirymsg, "= 1) || (substr_count($c_email, "google@gmail.com") >= 1)) { echo("
\n"); echo("Your request has been intercepted by our spam filter, and therefore not submitted.\n"); echo("Please contact us if you wish to submit your request. If your request is not spam, then we apologize for the inconvenience.
\n"); echo("
"); } else { $subject = "antiquariaatjunk.com - inquiry"; $eheader = "From: <" . $c_email . ">\n" . "Return-Path: " . $c_email . "\n" . "Reply-to: " . $c_email . "\n" . "X-mailer: PHP Engine"; $message = "Last name : " . $c_lastname . "\n" . "First name : " . $c_firstname . "\n" . "Address : " . $c_address . "\n" . "Town : " . $c_town . "\n" . "State : " . $c_state . "\n" . "Zipcode : " . $c_zipcode . "\n" . "Country : " . $c_country . "\n" . "Telephone : " . $c_tel . "\n" . "Fax : " . $c_fax . "\n" . "E-mail : " . $c_email . "\n" . "\n" . "Book:\n" . "----------------\n" . "BookNumber : " . $item . "\n" . "Author : " . $bookrow["Author"] . "\n" . "Title : " . $bookrow["Title"] . $bookrow["TitleRest"] . "\n" . "----------------\n" . "\n" . "Inquiry:\n" . "----------------\n" . $c_inquirymsg . "\n" . "----------------\n"; $emailmessage = "\n" . "\n" . $message . "\n" . "\n"; if($g_debug == 1) { //mail("tim@rockingstone.com", $subject, $emailmessage, $eheader); } else { //mail("tim@rockingstone.com", $subject, $emailmessage, $eheader); mail("books@antiquariaatjunk.com", $subject, $emailmessage, $eheader); } echo("
\n"); echo("Thank your for sending us your inquiry. We will get back to you as soon as possible.\n"); echo("
\n"); } } else { echo("
\n"); if($item >= 1) { echo("

\n"); if($bookrow["Author"] != "") { echo(EscapeHTMLCodes($bookrow["Author"]) . "
\n"); } $ttl = $bookrow["Title"] . $bookrow["TitleRest"]; if($ttl != "") { echo("
\n"); echo(EscapeHTMLCodes($ttl)); echo("\n"); echo("
\n"); } $ttl = $bookrow["Description"] . $bookrow["DescripRest"]; if(strlen($ttl) >= 150) { $ttl = substr($ttl, 0, 147) . "..."; } if($ttl != "") { echo(EscapeHTMLCodes($ttl) . "
\n"); } echo("

\n"); echo("EUR " . EscapeHTMLCodes(CentsToCurr($bookrow["Price"])) . "\n"); echo("
\n"); if($bookrow["DollarPrice"] >= 1) { echo("USD " . EscapeHTMLCodes(CentsToCurr($bookrow["DollarPrice"])) . "\n"); echo("
\n"); } echo("
\n"); echo("Item nr. " . $bookrow["BookNumber"] . "
\n"); echo("
\n"); echo("Use the form below to send us your inquiry or any questions you may have about this item.\n"); echo("
\n"); } else { echo("
\n"); echo("Use the form below to send us your inquiry or any questions you may have.\n"); echo("
\n"); } echo("\n"); echo("
\n"); echo("
\n"); echo("\n"); echo("\n"); echo("
Your inquiry: *
\n"); echo("\n"); echo("
\n"); echo("
\n"); echo("Your information:
\n"); echo("
\n"); echo("\n"); echo("
\n"); echo("\n"); echo("
\n"); echo("\n"); echo("
\n"); echo("
\n"); echo("
\n"); echo("
\n"); echo("Optional information:
\n"); echo("
\n"); echo("\n"); echo("
\n"); echo("\n"); echo("
\n"); echo("\n"); echo("
\n"); echo("\n"); echo("
\n"); echo("\n"); echo("\n"); echo("
\n"); echo("\n"); echo("
\n"); echo("\n"); echo("
\n"); echo("
\n"); echo("
\n"); echo("
\n"); echo("
\n"); echo("
\n"); } ?>