'; $checkbox = "yes"; } if (!isset($_POST['mycheckbox']) && isset($_POST['submit'])) { $checkbox = "no"; $appear = '
'; } if(isset($_POST['submit'])) { // COMPANY INFORMATION - FORM SANITATION // $title = filter_var($_POST['title'], FILTER_SANITIZE_STRING); $first_name = filter_var($_POST['first_name'], FILTER_SANITIZE_STRING); $last_name = filter_var($_POST['last_name'], FILTER_SANITIZE_STRING); $company = filter_var($_POST['company'], FILTER_SANITIZE_STRING); $phone = filter_var($_POST['phone'], FILTER_SANITIZE_STRING); $email = filter_var($_POST['email'], FILTER_SANITIZE_EMAIL); // COMPANY INFORMATION - FORM VALIDATION // if ($title == "") { $error = $error_message; $title_box = "red"; } if ($first_name == "") { $error = $error_message; $first_name_box = "red"; } if ($last_name == "") { $error = $error_message; $last_name_box = "red"; } if ($phone == "" || !is_numeric($phone)) { $error = $error_message; $phone_box = "red"; } if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email) || $email == "") { $error = $error_message; $email_box = "red"; } // BILLING INFORMATION - FORM SANITATION // $first_name_bill = filter_var($_POST['first_name_bill'], FILTER_SANITIZE_STRING); $last_name_bill = filter_var($_POST['last_name_bill'], FILTER_SANITIZE_STRING); $address_bill = filter_var($_POST['address_bill'], FILTER_SANITIZE_STRING); $address_2_bill = filter_var($_POST['address_2_bill'], FILTER_SANITIZE_STRING); $city_bill = filter_var($_POST['city_bill'], FILTER_SANITIZE_STRING); $state_bill = filter_var($_POST['state_bill'], FILTER_SANITIZE_STRING); $country_bill = filter_var($_POST['country_bill'], FILTER_SANITIZE_STRING); $zip_bill = filter_var($_POST['zip_bill'], FILTER_SANITIZE_STRING); $payee_bill = filter_var($_POST['payee_bill'], FILTER_SANITIZE_STRING); // BILLING INFORMATION - FORM VALIDATION // if ($first_name_bill == "") { $error = $error_message; $first_name_bill_box = "red"; } if ($last_name_bill == "") { $error = $error_message; $last_name_bill_box = "red"; } if ($address_bill == "") { $error = $error_message; $address_bill_box = "red"; } if ($city_bill == "") { $error = $error_message; $city_bill_box = "red"; } if ($state_bill == "") { $error = $error_message; $state_bill_box = "red"; } if ($country_bill == "") { $error = $error_message; $country_bill_box = "red"; } if ($zip_bill == "" || !is_numeric($zip_bill)) { $error = $error_message; $zip_bill_box = "red"; } if ($payee_bill == "") { $error = $error_message; $payee_bill_box = "red"; } if ($checkbox == "no") { // SHIPPING INFORMATION - FORM SANITATION // $first_name_ship = filter_var($_POST['first_name_ship'], FILTER_SANITIZE_STRING); $last_name_ship = filter_var($_POST['last_name_ship'], FILTER_SANITIZE_STRING); $address_ship = filter_var($_POST['address_ship'], FILTER_SANITIZE_STRING); $address_2_ship = filter_var($_POST['address_2_ship'], FILTER_SANITIZE_STRING); $city_ship = filter_var($_POST['city_ship'], FILTER_SANITIZE_STRING); $state_ship = filter_var($_POST['state_ship'], FILTER_SANITIZE_STRING); $country_ship = filter_var($_POST['country_ship'], FILTER_SANITIZE_STRING); $zip_ship = filter_var($_POST['zip_ship'], FILTER_SANITIZE_STRING); $payee_ship = filter_var($_POST['payee_ship'], FILTER_SANITIZE_STRING); // SHIPPING INFORMATION - FORM VALIDATION // if ($first_name_ship == "") { $error = $error_message; $first_name_ship_box = "red"; } if ($last_name_ship == "") { $error = $error_message; $last_name_ship_box = "red"; } if ($address_ship == "") { $error = $error_message; $address_ship_box = "red"; } if ($city_ship == "") { $error = $error_message; $city_ship_box = "red"; } if ($state_ship == "") { $error = $error_message; $state_ship_box = "red"; } if ($country_ship == "") { $error = $error_message; $country_ship_box = "red"; } if ($zip_ship == "" || !is_numeric($zip_ship)) { $error = $error_message; $zip_ship_box = "red"; } if ($payee_ship == "") { $error = $error_message; $payee_ship_box = "red"; } } // STORE INFORMATION - FORM SANITATION // $store_name = filter_var($_POST['store_name'], FILTER_SANITIZE_STRING); $sales_tax = filter_var($_POST['sales_tax'], FILTER_SANITIZE_STRING); $tax_id = filter_var($_POST['tax_id'], FILTER_SANITIZE_STRING); $num_stores = filter_var($_POST['num_stores'], FILTER_SANITIZE_STRING); $website = filter_var($_POST['website'], FILTER_SANITIZE_STRING); $doyoucarry = filter_var($_POST['doyoucarry'], FILTER_SANITIZE_STRING); $targetsellingprice = filter_var($_POST['targetsellingprice'], FILTER_SANITIZE_STRING); $markets_shows = filter_var($_POST['markets_shows'], FILTER_SANITIZE_STRING); $brand_1 = filter_var($_POST['brand_1'], FILTER_SANITIZE_STRING); $brand_2 = filter_var($_POST['brand_2'], FILTER_SANITIZE_STRING); $brand_3 = filter_var($_POST['brand_3'], FILTER_SANITIZE_STRING); // STORE INFORMATION - FORM VALIDATION // if ($store_name == "") { $error = $error_message; $store_name_box = "red"; } if ($sales_tax == "") { $error = $error_message; $sales_tax_box = "red"; } if ($tax_id == "") { $error = $error_message; $tax_id_box = "red"; } if ($num_stores == "") { $error = $error_message; $num_stores_box = "red"; } if ($doyoucarry == "") { $error = $error_message; $doyoucarry_box = "red"; } if ($targetsellingprice == "") { $error = $error_message; $targetsellingprice_box = "red"; } if ($markets_shows == "") { $error = $error_message; $markets_shows_box = "red"; } if ($brand_1 == "") { $error = $error_message; $brand_1_box = "red"; } if ($brand_2 == "") { $error = $error_message; $brand_2_box = "red"; } if ($brand_3 == "") { $error = $error_message; $brand_3_box = "red"; } // USERNAME/PASSWORD - FORM SANITATION // $username = filter_var($_POST['username'], FILTER_SANITIZE_STRING); $password = filter_var($_POST['password'], FILTER_SANITIZE_STRING); $conf_password = filter_var($_POST['conf_password'], FILTER_SANITIZE_STRING); // USERNAME/PASSWORD - FORM VALIDATION // if ($username == "") { $error = $error_message; $username_box = "red"; } if ($password == "") { $error = $error_message; $password_box = "red"; } if ($conf_password == "" || $conf_password != $password) { $error = $error_message; $conf_password_box = "red"; } // FINAL FORM VERIFICATION AND SEND // if ($error == "" ) { // Full Name // $name = $first_name . " " . $last_name; // Email Body // if ($checkbox == "yes") { $shippinginfo = "Shipping Information same as Billing Information

"; } else { $shippinginfo = "Shipping Information

First Name: $first_name_ship
Last Name: $last_name_ship
Address: $address_ship
Address 2: $address_2_ship
City: $city_ship
State: $state_ship
Country: $country_ship
Zip/Postal Code: $zip_ship
Person responsible for accounts payable: $payee_ship

"; } $boutique = ""; $gallery = ""; $finejewelry = ""; $giftstore = ""; if (isset($_POST['boutique'])) { $boutique = "Boutique Clothing Store, "; } if (isset($_POST['gallery'])) { $gallery = "Art or Craft Gallery, "; } if (isset($_POST['finejewelry'])) { $finejewelry = "Fine Jewelry Store, "; } if (isset($_POST['giftstore'])) { $giftstore = "Gift Store"; } if (isset($_POST['email_update'])) { $email_update = "I do want to sign up for the email updates."; } if (!isset($_POST['email_update'])) { $email_update = "I do not want to sign up for the email updates."; } $body = "You have received a new response from the Wholesale form!

Customer Information

Title: $title
First Name: $first_name
Last Name: $last_name
Company: $company
Phone: $phone
Email: $email

Billing Information

First Name: $first_name_bill
Last Name: $last_name_bill
Address: $address_bill
Address 2: $address_2_bill
City: $city_bill
State: $state_bill
Country: $country_bill
Zip/Postal Code: $zip_bill
Person responsible for accounts payable: $payee_bill

$shippinginfo Store Information

Store Name: $store_name
Sales Tax or Resale Number: $sales_tax
Federal Tax ID Number: $tax_id
Number of Stores: $num_stores
Website Address: $website
Do you currently carry jewelry?: $doyoucarry
Target Selling Price: $targetsellingprice
Market/Trade Shows Attended: $markets_shows
What is the type of business?: $boutique$gallery$finejewelry$giftstore
Brands Carried: $brand_1, $brand_2, $brand_3

Username/Password

Username: $username
Password: $password

$email_update "; // Compile Email // $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: '.$name.' <'.$email.'>' . "\r\n"; mail($to, $email_subject, $body,$headers); $success = $success_message; // CLEAR VALUES // $title = ""; $first_name = ""; $last_name = ""; $company = ""; $phone = ""; $email = ""; $first_name_bill = ""; $last_name_bill = ""; $address_bill = ""; $address_2_bill = ""; $city_bill = ""; $state_bill = ""; $country_bill = ""; $zip_bill = ""; $payee_bill = ""; $first_name_ship = ""; $last_name_ship = ""; $address_ship = ""; $address_2_ship = ""; $city_ship = ""; $state_ship = ""; $country_ship = ""; $zip_ship = ""; $payee_ship = ""; $store_name = ""; $sales_tax = ""; $tax_id = ""; $num_stores = ""; $website = ""; $doyoucarry = ""; $targetsellingprice = ""; $markets_shows = ""; $brand_1 = ""; $brand_2 = ""; $brand_3 = ""; $username = ""; $password = ""; $conf_password = ""; // END FORM SEND // } // END IF FORM SUBMIT // } require("inc/meta.php"); ?> Wholesale

wholesale form

" . $error . ""; echo "" . $success . ""; ?>

shipping information

/> same as billing information?
first name*
last name*
address*
address, line 2
city*
state (if in US)*
country*
zip/postal code*
person responsible for accounts payable*

store information

store name*
sales tax or resale number*
federal tax id number*
number of stores*
website address
do you currently carry jewelry?*
what is you target selling price point?*
what markets/trade shows do you attend (please list all)*
what is you type of business?* boutique clothing store
art or craft gallery
fine jewelry store
gift store
please list three brands or jewelry names you currently carry*


I would like to sign up for email updates

customer information

title*
first name*
last name*
company/store
phone*
email*

billing information

first name*
last name*
address*
address, line 2
city*
state (if in US)*
country*
zip/postal code*
person responsible for accounts payable*

username and password

username*
password*
confirm password*