Hi,
how can I check a string for weird characters,
I want a string to have only numbers (1234567890) or letters(aA / zZ)
Can I do it with a regex?
Check out this tutorial :
http://phpbuilder.com/columns/dario19990616.php3
And try :
if ( eregi("[a-z0-9]+$",$string) ) {
echo 'yes, alphanumeric';
} else {
echo 'nope, failed';
}
thank you....