Hi guys,
I am new to the forums but I wanted to see if you could help me out. I have a form that I built that needs to send the data that someone inputs via email. I have got it do to that but the thing is when someone doesnt check a "checkbox" I don't want it to include that information into the email but it does anyway. It just will leave a blank line where the original data would be if someone had checked the check box. Below is my PHP process code.
<?php
$message = $_REQUEST['message'] ;
$client_matter = $_REQUEST['client_matter'];
$third_party_firm = $_REQUEST['third_party_firm'] ;
$third_party_address1 = $_REQUEST['third_party_address1'];
$third_party_address2 = $_REQUEST['third_party_address2'];
$third_party_city = $_REQUEST['third_party_city'];
$third_party_state = $_REQUEST['third_party_state'];
$third_party_zip = $_REQUEST['third_party_zip'];
$quantity_of_cds = $_REQUEST['quantity_of_cds'];
$quantity_of_dvds = $_REQUEST['quantity_of_dvds'];
$quantity_of_paper_blowbacks = $_REQUEST['quantity_of_paper_blowbacks'];
$imaging_download = $_REQUEST['imaging_download'];
$imaging_email = $_REQUEST['imaging_email'];
$scan_exactly = $_REQUEST['scan_exactly'];
$tabs = $_REQUEST['tabs'];
$post_it = $_REQUEST['post_it'];
$color_4_color = $_REQUEST['color_4_color'];
$file_folders = $_REQUEST['file_folders'];
$file_format1 = $_REQUEST['file_format1'] ;
$file_format2 = $_REQUEST['file_format2'] ;
$tiff = $_REQUEST['tiff'];
$pdf = $_REQUEST['pdf'];
$jpeg = $_REQUEST['jpeg'];
$Omnivore = $_REQUEST['Omnivore'];
$Summation = $_REQUEST['Summation'];
$Concordance = $_REQUEST['Concordance'];
$IPro = $_REQUEST['IPro'];
$volume_name = $_REQUEST['volume_name'];
$starting_docid = $_REQUEST['starting_docid'];
$docid = $_REQUEST['docid'];
$docid2 = $_REQUEST['docid2'];
$number_options = $_REQUEST['number_options'];
$number_options2 = $_REQUEST['number_options2'];
$number_starting_number = $_REQUEST['number_starting_number'] ;
$stamping_options = $_REQUEST['stamping_options'];
$stamping_options2 = $_REQUEST['stamping_options2'];
$stamping_starting_number = $_REQUEST['stamping_starting_number'];
$media_duplication_options = $_REQUEST['media_duplication_options'];
$media_duplication_options2 = $_REQUEST['media_duplication_options2'];
$media_duplication_options3 = $_REQUEST['media_duplication_options3'];
$media_duplication_options4 = $_REQUEST['media_duplication_options4'];
$media_duplication_options5 = $_REQUEST['media_duplication_options5'];
$media_duplication_options6 = $_REQUEST['media_duplication_options6'];
$special_instructions = $_REQUEST['special_instructions'];
$first_name = $_REQUEST['first_name'];
$last_name = $_REQUEST['last_name'];
$company = $_REQUEST['company'];
$address = $_REQUEST['address'];
$city = $_REQUEST['city'];
$state = $_REQUEST['state'];
$zip = $_REQUEST['zip'];
$phone1 = $_REQUEST['phone1'];
$email = $_REQUEST['email'];
$due_date = $_REQUEST['due_date'];
$due_time = $_REQUEST['due_time'] ;
$am_or_pm = $_REQUEST['am_or_pm'] ;
$quantity_of_duplicates = $_REQUEST['quantity_of_duplicates'];
$document_duplication_options = $_REQUEST['document_duplication_options'];
$document_duplication_options2 = $_REQUEST['document_duplication_options2'];
$document_duplication_options3 = $_REQUEST['document_duplication_options3'];
$document_duplication_options4 = $_REQUEST['document_duplication_options4'];
$document_duplication_options5 = $_REQUEST['document_duplication_options5'];
$document_duplication_options6 = $_REQUEST['document_duplication_options6'];
$document_duplication_options7 = $_REQUEST['document_duplication_options7'];
$document_duplication_options8 = $_REQUEST['document_duplication_options8'];
$document_duplication_options9 = $_REQUEST['document_duplication_options9'];
$document_duplication_options10 = $_REQUEST['document_duplication_options10'];
$document_duplication_options11 = $_REQUEST['document_duplication_options11'];
$document_duplication_options12 = $_REQUEST['document_duplication_options12'];
$document_duplication_options13 = $_REQUEST['document_duplication_options13'];
$binding_options = $_REQUEST['binding_options'];
$binding_options2 = $_REQUEST['binding_options2'];
$binding_options3 = $_REQUEST['binding_options3'];
$cover_color = $_REQUEST['cover_color'];
$type_of_bind = $_REQUEST['type_of_bind'];
$type_of_bind2 = $_REQUEST['type_of_bind2'];
$type_of_bind3 = $_REQUEST['type_of_bind3'];
$type_of_bind4 = $_REQUEST['type_of_bind4'];
$type_of_bind5 = $_REQUEST['type_of_bind5'];
$type_of_bind6 = $_REQUEST['type_of_bind6'];
$type_of_bind7 = $_REQUEST['type_of_bind7'];
$type_of_bind8 = $_REQUEST['type_of_bind8'];
$type_of_bind9 = $_REQUEST['type_of_bind9'];
$type_of_bind10 = $_REQUEST['type_of_bind10'];
$package_for_shipping = $_REQUEST['package_for_shipping'];
$fedex_options = $_REQUEST['fedex_options'];
$fedex_options2 = $_REQUEST['fedex_options2'];
$fedex_options3 = $_REQUEST['fedex_options3'];
$account_number = $_REQUEST['account_number'];
$subject = $client_matter;
$message = "
Client Matter #: $client_matter \n
==THIRD PARTY BILLING==
Third Party Firm: $third_party_firm \n
Third Party Address 1: $third_party_address1 \n
Third Party Address 2: $third_party_address2 \n
Third Party City: $third_party_city \n
Third Party State: $third_party_state \n
Third Party Zip: $third_party_zip \n
==IMAGING==
Quantity of Cds: $quantity_of_cds \n
Quantity of DVDs: $quantity_of_dvds \n
Quantity of Paper Blowbacks: $quantity_of_paper_blowbacks \n
Download Files $imaging_download \n
Email Files: $imaging_email \n
--Imaging Options
$scan_exactly \n
$tabs \n
$file_folders \n
$post_it \n
$color_4_color
--File Format
Single Page: $file_format1 \n
Multi Page: $file_format2 \n
Tiff: $tiff \n
PDF: $pdf \n
JPEG: $jpeg \n
--Load File
Omnivore: $Omnivore \n
Summation: $Summation \n
Concordance: $Concordance \n
IPro: $IPro \n
Volume Name: $volume_name \n
Starting DocID: $starting_docid \n
DocID = Bates Number: $docid \n
OCR: $docid2 \n
==NUMBERING==
--Number
Original: $number_options \n
Duplicates: $number_options2 \n
Starting Number, Prefix, or Stamp: $number_starting_number \n
--Stamping
Original: $stamping_options \n
Duplicates: $stamping_options2 \n
Starting Number, Prefix, or Stamp: $stamping_starting_number \n
==MEDIA DUPLICATION==
--Media Types
Video/VHS Only: $media_duplication_options \n
Transfer video to DVD: $media_duplication_options2 \n
Audio Cassette: $media_duplication_options3 \n
CD: $media_duplication_options4 \n
DVD: $media_duplication_options5 \n
Transfer audio to CD: $media_duplication_options6 \n
Special Instructions: $special_instructions \n
==CLIENT INFORMATION==
First Name: $first_name \n
Last Name: $last_name \n
Firm: $company \n
Address: $address \n
City: $city \n
State: $state \n
Zip: $zip \n
Phone: $phone1 \n
Email: $email \n
Due Date: $due_date \n
Due Time: $due_time \n ($am_or_pm \n)
==DOCUMENT DUPLICATION==
Quantity of Duplicates: $quantity_of_duplicates \n
--Duplication Options
Reproduce exactly as original: $document_duplication_options \n
Tabs: $document_duplication_options2 \n
File Folders / Expandables: $document_duplication_options3 \n
Reproduce Post-it Notes: $document_duplication_options4 \n
Post-it Flags on duplicates: $document_duplication_options5 \n
Color for Color: 1 Photo per page: $document_duplication_options6 \n
Color for Color: 2 Photos per page: $document_duplication_options7 \n
Oversized Documents: Folded: $document_duplication_options8 \n
Oversized Documents: Rolled: $document_duplication_options9 \n
Oversized Documents: Mounted: $document_duplication_options10 \n
Oversized Documents: 20 x 30: $document_duplication_options11 \n
Oversized Docuemnts: 30 x 40: $document_duplication_options12 \n
Print contents of CD / DVD: $document_duplication_options13 \n
==BINDING & DRILLING==
--Binding Options:
Bind Original: $binding_options \n
Front and Back Covers: $binding_options2 \n
Notebook: $binding_options3 \n
Cover Color: $cover_color \n
--Type of Bind
Acco bind: top: $type_of_bind \n
Acco bind: side: $type_of_bind2 \n
Coil bind: $type_of_bind3 \n
Comb bind: $type_of_bind4 \n
Deposition covers: $type_of_bind5 \n
Tape bind: $type_of_bind6 \n
Velo bind: $type_of_bind7 \n
3 hole drill: $type_of_bind8 \n
2 hole side drill: $type_of_bind9 \n
2 hole top drill: $type_of_bind10 \n
==SHIPPING==
Do they want this packaged for shipping? $package_for_shipping \n
--FedEx Only
Options for Fedex:
$fedex_options \n
$fedex_options2 \n
$fedex_options3 \n
Account #: $account_number \n
";
mail( "EMAIL", "Legal Eagle Order" ,
$message, "From: $email" );
header( "Location: http:/whatever.com" );
?>