is there any function in php by which one can fixed a validation for character only username??
mean no body can submit any username which contains any symbols like ",*(5%#@!" ans so on , mean the username should be in Alphabetical form.. is there any function available ??
Any Idea ??
Thanx Tabish
yes, look at ereg() or eregi(). you could use
eregi"[a-zA-Z]", $string)
to check if the string holds other characters then a-z or A-Z. maybe is eregi_replace() also interesting for you too...
sorry,
ereg("[a-zA-Z]", $string)