form validation :ereg ()
| From: | kaab kaoutar | Date: | Mon, 29 Jan 2001 08:59:23 +0000 |
| Subject: | form validation :ereg () | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-37103@lists.php.net to get a copy of this message | ||
Hi again!
I still did not fix my prob :
I want to check, in a form, that the name input may include an alphabetical letter a- z, A-Z, or a space, or -, or à, or ä or ü etc
how can i do that ? i used ereg("([a-z,A-Z][ë,à]?)",$name) then
(!ereg("([a-z,A-Z,é,ê,è,ë,-,\t,à,ä,ï,ü,ö,û,â,ç])", $name))
i get the following warnin :REG_ERANGE:,invalid character range
by the way how to add space " " and "-" ?
Please help!
Thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.