Here is some orderform javascript code to do the following: 1. Sets/retrieves cookies for user info 2. Validates credit card number if a payment type other than ACH/Pay By Check is selected. # ------------------------------------------------------------------- 1. The body tag should be like this:
# ------------------------------------------------------------------- 2. The payment type needs to be one select box like this: # ------------------------------------------------------------------- 3. The submit button must be like this: (it can be all on one line...) # ------------------------------------------------------------------- 4. If you are using different field numbers/names, you will have to change them throughout the script below. Look for these names VERY carefully in the javascript functions and change them as needed. # ------------------------------------------------------------------- 5. Here is the java code that goes between the tags on the order form: