[PHP] Number validation
Hello I need one script in PHP to validate only numbers inserted from a form. For example like a telephone number. Thanks.
RE: [PHP] Number validation
[snip] I need one script in PHP to validate only numbers inserted from a form. For example like a telephone number. [/snip] Did you want us to search Google for you? Or would you rather we write something? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Number validation
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 can write it or if don't want to code ... perhaps searching the web could help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Number validation
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=enlr=ie=UTF-8q=php+regular+expression+match+phone+numberbtnG=Search Or you could STFA to see if this has already been asked... http://marc.theaimsgroup.com/?l=php-generalw=2r=1s=validate+phone+numberq=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 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Number validation again...
Hello again Does exits any function in PHP to see if one string is compose for numbers. And I have already searched in google before I asked here Thanks again André Caridade
Re: [PHP] Number validation
Nice one John, Come on guys, please read the manual or do some searching before posting. Cheers for now Angelo John Nichel [EMAIL PROTECTED] 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=enlr=ie=UTF-8q=php+regular+expression+match+phone+numberbtnG=Search Or you could STFA to see if this has already been asked... http://marc.theaimsgroup.com/?l=php-generalw=2r=1s=validate+phone+numberq=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 [EMAIL PROTECTED] -- 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Number validation again...
[snip] Does exits any function in PHP to see if one string is compose for numbers. And I have already searched in google before I asked here [/snip] http://www.php.net/is_numeric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Number validation again...
[snip] Does exits any function in PHP to see if one string is compose for numbers. And I have already searched in google before I asked here [/snip] The manual is your friend. http://www.php.net/strspn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Number validation again...
Andre wrote: Does exits any function in PHP to see if one string is compose for numbers. YES http://catb.org/~esr/faqs/smart-questions.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php