RE: [PHP] Eregi filtering..
| From: | Miranda, Joel Louie M | Date: | Tue, 08 Jul 2003 00:28:39 +0000 |
| Subject: | RE: [PHP] Eregi filtering.. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-154281@lists.php.net to get a copy of this message | ||
Hey ralph, its you again! :) thanks, its now working..
> if(strrpos($v_tel_filter,' ') > 0 || strspn($v_tel_filter,
> "0123456789-") != strlen($v_tel_filter)){
> echo "'$v_tel_filter' Telephone Number Contains words";
> } else {
I'll check on the syntax for strrpos, thanks!
--
Thank you,
Louie
-----Original Message-----
From: Ralph [mailto:ralph@nqionline.com]
Sent: Tuesday, July 08, 2003 8:20 AM
To: Miranda, Joel Louie M; php-general@lists.php.net
Subject: RE: [PHP] Eregi filtering..
Here is one of doing this:
if(strrpos($v_tel_filter,' ') > 0 || strspn($v_tel_filter,
"0123456789-") != strlen($v_tel_filter)){
echo "'$v_tel_filter' Telephone Number Contains words";
} else {
....
}
-----Original Message-----
From: Miranda, Joel Louie M [mailto:jmiranda@pd.state.gov]
Sent: Monday, July 07, 2003 5:10 PM
To: 'php-general@lists.php.net'
Subject: [PHP] Eregi filtering..
elseif (eregi("a-ZA-9", $v_tel_filter)) {
echo "'$v_tel_filter' Telephone Number Contains words";
} else {
im looking how to verify numbers alone and dash "-" can that be possible? I
have tried using "a-ZA-9" but did not work.
any ideas?
thanks,
louie
--
Thank you,
Louie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php