Validation Codes
Posted: Mon May 29, 2006 3:08 pm
Can someone help me with this or explain it more.
I want to validate the variable $username. I want it to have only these values allowed:
A-Z
a-z
0-9
_
How could I do this? I got an idea, but I am so confused with the eregi(); command.
Also how can I make the variable $email have to be in the normal e-mail format with only these characters allowed:
A-Z
a-z
0-9
.
-
_
Thanks.
I want to validate the variable $username. I want it to have only these values allowed:
A-Z
a-z
0-9
_
How could I do this? I got an idea, but I am so confused with the eregi(); command.
Also how can I make the variable $email have to be in the normal e-mail format with only these characters allowed:
A-Z
a-z
0-9
.
-
_
Thanks.