Results 1 to 5 of 5

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

  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.

  2. #2
    Member
    Join Date
    Jan 2003
    Posts
    44
    in the same manner as has been done in the in-class assignment
    First, I doubt anyone here knows what that manner is (you havn't even said what language you're using). Second, you should ask your teacher. I don't think people here will do your homework for you.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Posts
    18
    Dont worry about that...I actually have that step already done, as well the credit card # and zip code. All I need now is the name and telephone # verification. Thanks.

  4. #4
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    You're basically asking us to do most of it.


    The telephone and zip code shouldn't be too hard anyway..

  5. #5
    Hyperactive Member bsw2112's Avatar
    Join Date
    Nov 2001
    Location
    ottawa, canada
    Posts
    292

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