session_start(); include("lib/globals.php"); include("lib/common.php"); require_once "recaptchalib.php"; $site_key = "6LeOSWAUAAAAAGdOzBY9nVryf4Pg6NhJsqBquIhA"; $secret= "6LeOSWAUAAAAACfw2pVZU2v0WNCIRgxMlUHZR_4F"; $page_id=$_REQUEST['page_id']; $menu_id=$_REQUEST['menu_id']; $BANNER_DISPLAY='yes'; $BANNER_TYPE='box_banner'; $id=$_REQUEST['id']; $pid=$id; $cid=$_REQUEST['cid']; $sid=$_REQUEST['sid']; $submit_success='no'; if($_REQUEST['submit_quote']=='yes'){ $first_name=addslashes($_REQUEST['first_name']); $last_name=addslashes($_REQUEST['last_name']); $add=addslashes($_REQUEST['add']); $city=addslashes($_REQUEST['city']); $state=addslashes($_REQUEST['state']); $country=addslashes($_REQUEST['country']); $zip=addslashes($_REQUEST['zip']); $email=addslashes($_REQUEST['email']); $phone=addslashes($_REQUEST['phone']); $company=addslashes($_REQUEST['company']); $details=addslashes($_REQUEST['details']); $ts=mktime(); /* $reCaptcha = new ReCaptcha($secret); // if submitted check response if ($_POST["g-recaptcha-response"]) { $response = $reCaptcha->verifyResponse( $_SERVER["REMOTE_ADDR"], $_POST["g-recaptcha-response"] ); } if ($response != null && $response->success) { */ if(1){ $sql_contact="INSERT INTO `".$DB_PREFIX."_sell` ( `id` , `cid` , `sid` , `pid` , `first_name` , `last_name` , `add` , `city` , `state` , `country` , `zip` , `email` , `phone` , `company` , `extra` , `details` , `ts` ) VALUES (NULL , '$cid', '$sid', '$pid', '$first_name', '$last_name', '$add', '$city', '$state', '$country', '$zip', '$email', '$phone', '$company', '$extra', '$details', '$ts')"; $rs_contact=execute_query($sql_contact); $f='success'; ///////////////////////////////////////// $subject='RACK FOR SALE - SELL'; $from='From:Rackforsale.com'; $content= '
Product | '.get_product_name($_REQUEST[pid]).' | |
Category | '. get_category_name($_REQUEST[cid]).' | |
Sub Category | '. get_category_name($_REQUEST[sid]).' | |
First Name | '.$_REQUEST[first_name].' | |
Last Name | '.$_REQUEST[last_name].' | |
Company Name | '.$_REQUEST[company].' | |
Phone | '.$_REQUEST[phone].' | |
Street Address | '.$_REQUEST[add].' | |
City | '.$_REQUEST[city].' | |
Province/State | '.$_REQUEST[state].' | |
Postal Code / Zip Code | '.$_REQUEST[zip].' | |
Country | '.$_REQUEST[country].' | |
'.$_REQUEST[email].' | ||
Details | '.nl2br($_REQUEST[details]).' | |
Date Sent | '.date("d M Y", $ts).' |
Product Required | '.get_product_name($_REQUEST[pid]).' |
Name | '.$_REQUEST[first_name].".".$_REQUEST[last_name].' |
Company Name | '.$_REQUEST[company].' |
Phone | '.$_REQUEST[phone].' |
Street Address | '.$_REQUEST[add].' |
City | '.$_REQUEST[city].' |
Province/State | '.$_REQUEST[state].' |
Postal Code / Zip Code | '.$_REQUEST[zip].' |
Country | '.$_REQUEST[country].' |
'.$_REQUEST[email].' | |
Message | '.nl2br($_REQUEST[details]).' |
Date Sent | '.date("d M Y", $ts).' |
include('left.php'); ?> |
if( $rcontent['image']!='' ){ ?>
if($submit_success=='yes' ){
?>
} ?> We Buy Used Rack!
Thanks For The Selling Information.
We will get back to you soon.
rackforsale.com
We Buy Used Rack!
} ?>
|