function alphanumeric($text){
if (ereg("[^A-Z a-z0-9\-\']", $text)){
$an="N";
}else{
$an="Y";
}
return $an;
}
Seems to *almost* be working...
I need to allow only
a-z
A-Z
0-9
-
'
in any order...
but my function seems to allow anything when i include the last bit
in the regex \-\'
? thanks,
riquez
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/