is_valid) { $error[] = "The reCAPTCHA was entered incorrectly."; } // Begin checking information if (strlen($firstName) == 0) { $error[] = "The first name is required."; } if (strlen($lastName) == 0) { $error[] = "The last name is required."; } if ((!preg_match('/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i', $emailAddress)) || (strlen($emailAddress) == 0)) { $error[] = "The email address you entered is not valid."; } if (strlen($phone) == 0) { $error[] = "The phone is required."; } if (strlen($subscribe) == 0) { $subscribe = "No"; } if (count($error) == 0) { // If there are no errors in the form input... //$to = $siteAdmin; $to = $siteGenEmail; $from = "website@mindofcouture.com"; $subject = $siteName." Contact Form (".$firstName." ".$lastName.")"; $message = "The following contact form e-mail was submitted on ".$currentTime." First Name: ".$firstName." Last Name: ".$lastName." E-Mail: ".$emailAddress." Phone: ".$phone." Company Name: ".$companyName." Profession: ".$title." Questions/Comments ".str_replace('\r\n', Chr(13).Chr(10), $comments)."\n Join mailing list ".$subscribe." End of e-mail"; $headers = "From: $from\r\n"; $headers .= "Reply-To: $from\r\n"; $success = mail($to, $subject, $message, $headers); $sendOk = 1; // add contact $query_contactAdd = "INSERT INTO Contacts SET firstName = '".$firstName."', lastName = '".$lastName."', organization = '".$organization."', title = '".$title."', address = '".$address."', address2 = '".$address2."', city = '".$city."', state = '".$state."', zipcode = '".$zipcode."', country = '".$country."', phone = '".$phone."', emailAddress = '".$emailAddress."', website ='".$website."', comments = '".$comments."', subscribe = '".$subscribe."', dateAdded = '".$currentTime."'"; $result_contactAdd = mysql_query($query_contactAdd) or die ("Contact Addition Failed with Error: " .mysql_error()); } } // end submitchecker $topBarBackground = "background: #a97f3f;"; ?> <? echo $thisSection; ?><? if (strlen($thisSub) > 0): ?>: <? echo $thisSub; ?><? endif; ?><? if (strlen($thisPage) > 0): ?> _ <? echo $thisPage; ?><? endif; ?> - <? echo $siteName; ?>
 
 
Telephone
(630) 986-9454

Fax
(630) 986-0369

E-mail
moc@mindofcouture.com
 
Your inquiry was submitted successfully. Complete the form below and we'll contact you shortly.

" class="inputSm" onclick="clickclear(this, 'First Name*');" onblur="clickrecall(this,'First Name*');" />
 
" class="inputSm" onclick="clickclear(this, 'Last Name*');" onblur="clickrecall(this,'Last Name*');" />
" class="inputSm" onclick="clickclear(this, 'Email Address*');" onblur="clickrecall(this,'Email Address*');" />
 
" class="inputSm" onclick="clickclear(this, 'Phone*');" onblur="clickrecall(this,'Phone*');" />
" class="inputSm" style="color: #b1b1b1;" class="inputSm" onclick="clickclear(this, 'Company Name');" onblur="clickrecall(this,'Company Name');" />
 
 
checked>