function check_inquiry(){ // bools $error = false; $incomplete = false; $email_error = false; $job_error = true; $desc_error = false; // contact vars $c_fname = $_POST['client_first_name']; $c_lname = $_POST['client_last_name']; $c_telephone = $_POST['client_telephone']; $c_email = $_POST['client_email']; $c_company_name = $_POST['client_company_name']; $c_address1 = $_POST['client_address1']; $c_address2 = $_POST['client_address2']; $c_city = $_POST['client_city']; $c_state = $_POST['client_state']; $c_zip = $_POST['client_zipcode']; $c_contact_time = $_POST['client_best_time']; // job vars - checkboxes - javascript disabled browsers $c_print = $_POST['print_checkbox']; $c_web = $_POST['web_checkbox']; $c_gd = $_POST['gd_checkbox']; //job vars - buttons - javascript enabled browsers $b_print = $_POST['item_print']; $b_web = $_POST['item_web']; $b_gd = $_POST['item_gd']; // job descriptions $jd_print = $_POST['print_description']; $jd_web = $_POST['web_description']; $jd_gd = $_POST['gd_description']; // validate fields if (!$c_fname) { $incomplete = true; } if (!$c_lname) { $incomplete = true; } if (!$c_telephone) { $incomplete = true; } if (!$c_email) { $incomplete = true; } if (!$c_company_name) { $incomplete = true; } if (!$c_address1) { $incomplete = true; } if (!$c_city) { $incomplete = true; } if (!$c_state) { $incomplete = true; } if (!$c_zip) { $incomplete = true; } if (!$c_contact_time) { $incomplete = true; } if ($c_print) { $job_error = false; $job_type .= "print work,"; } if ($b_print) { $job_error = false; $job_type .= "print work,"; } if ($c_web) { $job_error = false; $job_type .= "website development,"; } if ($b_web) { $job_error = false; $job_type .= "website development,"; } if ($c_gd) { $job_error = false; $job_type .= "graphic design,"; } if ($b_gd) { $job_error = false; $job_type .= "graphic design,"; } if (($b_print && !$jd_print) || ($c_print && !$jd_print)) { $desc_error = true; } if (($b_web && !$jd_web) || ($c_web && !$jd_web)) { $desc_error = true; } if (($b_gd && !$jd_gd) || ($c_gd && !$jd_gd)) { $desc_error = true; } if (!$job_error) { $job_type = substr($job_type,0,strlen($job_type)-1); $job = explode(",",$job_type); } if ($incomplete) { echo "
Please be sure that you have filled out the form completely. Atleast one (1) item category is required to be selected and a short project description must be provded describing what you are inquiring about..
Please be sure that you have filled out the form completely. Atleast one (1) item category is required to be selected and a short project description must be provded describing what you are inquiring about..
Please be sure that you have filled out the form completely. You have selected a job type but did not provide a project description for it.
from '.$c_fname.' '.$c_lname.' ['.$c_email.'] on '.date("",time()).'
'.$description[$x].'
This e-mail contains proprietary information and may be confidential. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this message is strictly prohibited. If you received this message in error, please delete it immediately.
This e-mail was automatically generated by travisballard.com's e-mail services at the visitor's request. Any reply to this e-mail will not be received by travisballard.com. Please contact the travisballard.com directly if you have questions regarding this inquiry.
your inquiry has been sent to me for review. a copy has also been sent to the email address you provided for you to keep with your records. I will contact you regarding your inquiry as soon as possible.