Re: Number validation
| From: | Angelo binc2 | Date: | Fri, 30 Jul 2004 14:16:28 +0000 |
| Subject: | Re: Number validation | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-192311@lists.php.net to get a copy of this message | ||
Nice one John,
Come on guys, please read the manual or do some searching before posting.
Cheers for now
Angelo
>>> John Nichel <john@kegworks.com> 7/30/2004 4:07:33 PM >>>
Andre wrote:
> Hello
> I need one script in PHP to validate only numbers inserted from a form.
> For example like a telephone number.
> Thanks.
>
Well, you could RTFM on regular expressions....
http://us4.php.net/preg_match
Or you could STFW for how to match a phone number...
http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=php+regular+expression+match+phone+number&btnG=Search
Or you could STFA to see if this has already been asked...
http://marc.theaimsgroup.com/?l=php-general&w=2&r=1&s=validate+phone+number&q=b
Or you could pay me, and I'll write it for you...
$65/hr, 3 hour minimum.
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@kegworks.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--------------------------------------------------------------------
Disclaimer
This e-mail transmission contains confidential information,
which is the property of the sender.
The information in this e-mail or attachments thereto is
intended for the attention and use only of the addressee.
Should you have received this e-mail in error, please delete
and destroy it and any attachments thereto immediately.
Under no circumstances will the Cape Technikon or the sender
of this e-mail be liable to any party for any direct, indirect,
special or other consequential damages for any use of this e-mail.
For the detailed e-mail disclaimer please refer to
http://www.ctech.ac.za/polic or call +27 (0)21 460 3911