Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Concise Validation

  1. #11
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Why would you verify that it's less than 8 characters? What if the country code is included? What if there are symbols? You're going to be rejecting a lot of valid numbers!!

    And more importantly, if nothing at all is submitted (or just a single digit) it will pass because it's less than 8.

    If you want VERY basic checks here, then do something like strlen($y)>3. Certainly a real phone number will be 3+ characters long. And one very easy thing to check is that they didn't entirely skip the field.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  2. #12
    Join Date
    Aug 2011
    Location
    Rep Of Ireland
    Posts
    126
    Thanks
    24
    Thanked 3 Times in 1 Post

    Default

    That is it... got it....Thanks.

Tags for this Thread

Bookmarks

Posting Permissions

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