Results 1 to 5 of 5

Thread: I need help fast (AND URGENT!!!)

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Posts
    18

    I need help fast (AND URGENT!!!)

    I've been totally swamped in work, assignments, tests, and family emergencies and I need to know how to do this and fast. Please help!

    --------------------------------------------------------
    First, validate the email address field

    Next, validate the name field (use one field for the first and last name), such that you know one alpha character is followed by a space which is followed by another alpha character.

    Next, you must valide the zipcode, ensuring that it encompasses one of two possibilities ( 55555 OR 55555-4444 ). Notice the use of the "hyphen" between the first and second parts of the zipcode.

    Next, validate the phone number field. All numbers should be entered in the format of "(xxx) xxx-xxxx". Note the use of a space and the parentheses.

    Next, we'll assume that our site only accepts MasterCard/Visa and American Express. MC and Visa cards have the following format 4444-4444-4444-4444, while an American Express card has the following format 4444-4444-55555. Again, make sure you validate the use of dashes.

    Finally, you want to ensure that a credit card type has been selected, especially since that will depend on your validation of the credit card number.


    This is to be done in Javascript BTW
    Last edited by GUnit216; Mar 3rd, 2003 at 12:40 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width