-
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
-
-
That is it... got it....Thanks.
-
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks