add('contact', $text_antirobotreg_error); } // EOF Anti Robot Registration v2.6 $name = tep_db_prepare_input($_POST['name']); $email_address = tep_db_prepare_input($_POST['email']); $enquiry = tep_db_prepare_input($_POST['enquiry']); // BOF Anti Robot Registration v2.6 if (!tep_validate_email($email_address)) { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } elseif (!$entry_antirobotreg_error == true) { // if (tep_validate_email($email_address)) { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address); tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); // } else { // $error = true; // $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } // EOF Anti Robot Registration v2.6 } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US)); $content = basename($_SERVER['PHP_SELF']); while (strstr($content, '.php')) $content = str_replace('.php', '', $content); $javascript = 'remove_label.js'; include (bts_select('main', $content_template)); // BTSv1.5 require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>