badfields = arrayNew(2); showform = 1; formfields = "FIRSTNAME,LASTNAME,EMAIL,ADDRESS,CITY,STATE,ZIP,PHONE,FAX,SUBJECT,MESSAGE"; if (not isDefined("form")) form = structNew(); for (i = 1; i LTE listLen(formfields); i = i + 1) { field = listGetAt(formfields, i); if (not structKeyExists(form, field)) structInsert(form, field, "", "yes"); } function verifyField(field, error) { //writeoutput("#field#: #form[field]#
"); if (arrayLen(arguments) GTE 3 AND isNumeric(arguments[3])) min = arguments[3]; else min = 1; if (arrayLen(arguments) GTE 4 AND isNumeric(arguments[4])) max = arguments[4]; else max = -1; if (structKeyExists(form, field)) { form[field] = trim(form[field]); if (len(form[field]) GTE min AND (max GTE min AND len(form[field]) LTE max)) { form[field] = trim(form[field]); OK = 1; } else if (len(form[field]) LT min){ arrayAppend(badfields[1], field); arrayAppend(badfields[2], error); OK = 0; } else if (max GTE min AND len(form[field]) GT max){ arrayAppend(badfields[1], field); arrayAppend(badfields[2], error & " (Value too long)"); OK = 0; } } else { arrayAppend(badfields[1], field); arrayAppend(badfields[2], error); form[field] = ""; OK = 0; } return OK; } // check for valid submitted fields if (structKeyExists(form, "submit")) { OK = verifyField("firstName", "Your First Name.", 1, 150); OK = verifyField("lastName", "Your Last Name.", 1, 150); if (NOT len(trim(form.email))) { arrayAppend(badfields[1], "email"); arrayAppend(badfields[2], "Your Email Address."); form.email = ""; } else if (len(trim(form.email)) GT 150) { arrayAppend(badfields[1], "email"); arrayAppend(badfields[2], "Your Email Address is too long. (150 characters max)"); form.email = form.email; } else if (REFindNoCase('[[:alnum:]_\.\-]+@([[:alnum:]_\.\-])+\.+[[:alpha:]]{2,4}', form.email) IS FALSE) { arrayAppend(badfields[1], "email"); arrayAppend(badfields[2], "Your VALID Email Address."); form.email = ""; } else { form.email = trim(form.email); } //OK = verifyField("zip", "Your Zip or Postal code.", 5, 10); OK = verifyField("phone", "Your Telephone Number.", 1, 12); OK = verifyField("subject", "The Subject of this Message.", 1, 150); OK = verifyField("message", "Your Message.", 1, 150); if (arrayLen(badfields[1])) showform = 1; else showform = 0; }
Meyerowitz-Rook Family Tree Chiropractic :: Contact Us


INTRODUCTION | ABOUT CHIROPRACTIC | OUR CLINIC | PATIENT TESTIMONALS | LECTURES | CONTACT US | DIRECTIONS

 
Thank You.

You are important to us and your contact will be handled promptly.

 

 

 

 

 

 

 


Please fill in the form below so we have all the necessary information in order to answer your questions.
Please correct or complete the following required information and resubmit this form:
  • #badfields[2][badfield]#
  •     Required = *
    * First Name: * Last Name: * Email Address:
    Address:
    City: State: Zip Code:
    select item, state_abbr from usps_states_lkp order by item
    * Phone Number: Fax Number:
    * Message Subject:
    * Message:
    HOURS: Monday - Friday 9:30am - 5:30pm (open during lunch) Saturday 10:00am - 12:00pm
    PHONE: 805.963.4293 FAX: 805.963.1177
    Address: 214 East De La Guerra, Santa Barbara, California 93101
    WEBSITE: www.familytree-chiropractic.com
    Meyerowitz-Rook Family Tree Chiropractic - Copyright©2004
    214 East De La Guerra, Santa Barbara, CA 93101 - (805) 963-4293