Help with PHP eregi alnum if statement
- From: "fbsd_user" <fbsd_user@xxxxxxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 14:16:06 -0500
I am trying to test the login id entered from a form.
Checking that the contents are upper or lower case alpha or numeric
0-9
plus the special characters - dash and # pound sign
Code:
if(eregi("([[:alnum:]\#\-]+)", $loginid))
{ print("loginid is alnum"); } else { print("loginid is not
alnum"); }
I get the message "loginid is alnum" no matter what I enter to test.
What is wrong with the statement syntax that it don?t work
correctly?
Thanks for your help
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Prev by Date: Re: adding a *.wav or *mp3 file to my HTML
- Next by Date: Re: Haven't been able to make world in about a year
- Previous by thread: adding a *.wav or *mp3 file to my HTML
- Next by thread: Does FreeBSD have problems with SCSI CD-drives ??
- Index(es):