1, CURLOPT_URL => "https://www.google.com/recaptcha/api/siteverify?secret=$capSecret&response=$capResponse" )); // Send the request & save response $response = curl_exec($curl); if(!$response) { die('Error: "' . curl_error($curl) . '" - Code: ' . curl_errno($curl)); } else { $checkResponse = json_decode($response); } // Close request to clear up some resources curl_close($curl); // fetches a list of the columns for this table $sql = "SHOW COLUMNS FROM $database.$table"; $res = $mysqli->query($sql); while ($row = $res->fetch_assoc()) { if (is_null($columns)) $columns = array(); if ($row['Field'] != 'timestamp' AND $row['Field'] != 'cat_id') { $columns[] = array('name' => $row['Field'], 'default' => $row['Default'], 'type' => $row['Type']); } } // sets up keys/vars for validations/database entry, based on columns found foreach ($columns as $data) { // if no data submitted for corresponding key, set the default (per sql) if (isset($_REQUEST[$data['name']]) AND empty($_REQUEST[$data['name']])) { $$data['name'] = $data['default']; $_SESSION[$data['name']] = $data['default']; } // if the data submitted was NULL (some drop downs use this) then set to default (per sql) elseif (isset($_REQUEST[$data['name']]) AND $_REQUEST[$data['name']] == 'NULL') { $$data['name'] = $data['default']; $_SESSION[$data['name']] = $data['default']; } // set the variable name, and the data contained elseif (isset($_REQUEST[$data['name']])) { $$data['name'] = $_REQUEST[$data['name']]; $_SESSION[$data['name']] = $_REQUEST[$data['name']]; } // if for some reason the form submitted did not contain a database field, we still set it up else { $$data['name'] = $data['default']; $_SESSION[$data['name']] = $data['default']; } } //data validation $email = (filter_var($email, FILTER_VALIDATE_EMAIL)) ? $email : FALSE; // phone number & zip validation //eliminate every char except 0-9 $justPNums = preg_replace("/[^0-9]/", '', $phone); $justZNums = preg_replace("/[^0-9]/", '', $zip); //eliminate leading 1 if its there on phone if (strlen($justPNums) == 11) $justPNums = preg_replace("/^1/", '',$justPNums); //if we have 10 digits left, it's probably valid. $phone = (strlen($justPNums) == 10) ? $justPNums : FALSE; //if we have 5 or 9 digits left, it's probably valid $zip = (strlen($justZNums == 5) !== false OR strlen($justZNums == 9) !== false) ? $justZNums : FALSE; if ($first_name && $last_name && $email && $address && $city && $state && $zip && $phone && $source && $offers && $checkResponse->success){ $map = array('int' => 'i', 'varchar' => 's', 'text' => 's', 'timestamp' => 's'); foreach ($columns as $data) { // build the insert target / values if (is_null($c_init)) { $target = '('; $values = '('; $bindparams = ''; $params = array(); $c_init = TRUE; } else { $pre = ', '; } $target .= $pre . $data['name']; $values .= $pre . '?'; foreach ($map as $keyword => $binder) { if (strpos($data['type'], $keyword) !== false) { $bindparams .= $binder; } } $params[$data['name']] = $$data['name']; } $params = array_merge(array($bindparams), array_values($params)); $target .= ')'; $values .= ')'; unset($c_init); $sql = "INSERT INTO $table $target VALUES $values"; if ($stmt = $mysqli->prepare($sql)) { call_user_func_array(array(&$stmt, 'bind_param'), ref_values($params)); $stmt->execute(); $stmt->close(); } require_once('includes/Swift-5.0.0/lib/swift_required.php'); $transport = Swift_MailTransport::newInstance(); $mailer = Swift_Mailer::newInstance($transport); //Discs $message = Swift_Message::newInstance() ->setSubject("Catalog Request") ->setFrom(array("csr@wemaketapes.com" => "We Make Tapes Intranet")) ->setTo(array( "csr@wemaketapes.com" => "Discs")) ->setBody("Catalog Form\n\nSend me your catalog by mail: $mail\nSend me a sample(s) of your disc or tape packaging: $samples\nFirst Name: $first_name \nLast Name: $last_name \nEmail Address: $email \nAddress: $address \nCity: $city \nState: $state \nZip: $zip \nPhone: $phone \nHow did you hear about us: $hear \nComments: $comments \nI would like to hear about future offers from We Make Tapes & Discs: $offers \n") ->addPart("

Catalog Form

Send me your catalog by mail: $mail
Send me a sample(s) of your disc or tape packaging: $samples
First Name: $first_name
Last Name: $last_name
Email Address: $email
Address: $address
City: $city
State: $state
Zip: $zip
Phone: $phone
How did you hear about us: $hear
Comments: $comments
I would like to hear about future offers from We Make Tapes & Discs: $offers", 'text/html'); $result = $mailer->send($message); $url = "cd_dvd_duplication_replication_catalog2.php"; header("Location: $url"); } else { $error = "Please fill out the required fields correctly."; } } ?> CD DVD Disc Free Samples | Nashville | We Make Tapes & Discs

Free Catalog and Samples
from We Make Tapes & Discs

Order the print version of our catalog by completing the form below, or if you can’t wait download the pdf now.

If you need a disc or packaging sample(s), please fill out the form, and indicate the type of sample(s) you need. Check out our packaging options and a number of disc samples that we’ve duplicated or replicated.