"; print_r($_POST); echo ""; $emailpro = $_POST['emailProductStoreId']; $fname = $_POST['requestQuote_fname']; $lname = $_POST['requestQuote_lname']; $companyName = $_POST['requestQuote_companyName']; $rqaccount = $_POST['requestQuote_accountType']; $email = $_POST['requestQuote_eMail']; $phone = $_POST['requestQuote_phoneNumber']; $address = $_POST['requestQuote_address1']; $city = $_POST['requestQuote_city']; $country = $_POST['requestQuote_country']; $state = $_POST['requestQuote_state']; $postal = $_POST['requestQuote_zipCode']; $biztype = $_POST['requestQuote_businessType']; $website = $_POST['requestQuote_website']; $hearAboutUs = $_POST['requestQuote_hearAboutUs']; $comments = $_POST['description']; $items = ''; $icount = 1; foreach ($_POST['item'] as $key=>$val) { $items .= '#'.$icount.': '. $val .' x '.$_POST['qty'][$key]."\r\n"; $icount++; } //echo $items; //exit; $mail_body = "Louie Lighting Quote Request\r\n\r\n"; $mail_body .= "Email Product Store Id: ". $emailpro ."\r\n"; $mail_body .= "First Name: ". $fname ."\r\n"; $mail_body .= "Last Name: ". $lname ."\r\n"; $mail_body .= "Company Name: ". $companyName ."\r\n"; $mail_body .= "Account Type: ". $rqaccount ."\r\n"; $mail_body .= "Email address: ". $email ."\r\n"; $mail_body .= "Phone Number: ". $phone ."\r\n"; $mail_body .= "Address: ". $address ."\r\n"; $mail_body .= "City: ". $city ."\r\n"; $mail_body .= "Country: ". $country ."\r\n"; $mail_body .= "State/Province: ". $state ."\r\n"; $mail_body .= "Zipcode: ". $postal ."\r\n"; $mail_body .= "Business Type: ". $biztype ."\r\n"; $mail_body .= "Website: ". $website ."\r\n"; $mail_body .= "How hear about us: ". $hearAboutUs ."\r\n"; $mail_body .= "Item(s):\r\n ". $items ."\r\n"; $mail_body .= "Description: ". $comments ."\r\n"; $mail_body .= "-- 0 --"; $subject = "Louie Lighting - Quote Request"; //subject $name = 'Quote Request'; //senders name $email = 'no-reply@forms.louielighting.com'; //senders e-mail adress //$recipient = "formtest@beapartof.com, arie@louielighting.com, info@louielighting.com"; //recipient $recipient = "arie@louielighting.com, arielouie@gmail.com, info@louielighting.com"; //recipient $header = "From: ". $name ." <" . $email . ">\r\n"; //optional headerfields // ************End Configure**************** if (@mail($recipient, $subject, $mail_body, $header)) { $_SESSION['actions'] = "Your request has been sent. You may leave this page now."; } else { // This echo's the error message if the email did not send. // You could change the text in between the

tags. echo('

Mail could not be sent. Please use your back button to try again.

'); } } ?>

Louie Lighting - Quote Request




* First Name
* Last Name
Company Name
* Account Type
* Email address
* Phone Number
* Address
* City
* Country
* State/Province
* Zipcode
Business Type
Your Website
How did you hear about us

Please enter the Manufacturer, Item part #, Item Description in each of the boxes below.
Item # 1 Quantity:
Add another Item
 
Enter more items or Custom Fixture details here as needed. You may also email or fax us drawings, pictures or any other reference information.