ID:               16358
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         *Regular Expressions
 Operating System: Linux Red HAt 7.1
 PHP Version:      4.1.2
 New Comment:

The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php




Previous Comments:
------------------------------------------------------------------------

[2002-03-30 02:40:13] [EMAIL PROTECTED]

Since I have been using php I have had a problem with the ereg function
not mathcing patterns properly.

For example I am trying the use ereg to ensure that users use passowrds
that contain a combination of letters and numbers.

These are my HTML and PHP codes:

<input type="password" name="password">

if(!ereg("([a-zA-Z0-9])", "$password")){
   echo "Bad Password";
}

The problem that I encounter with ereg is that I have been able to
enter passwords from the html form that do not contain numbers and or
only have mixed case letters but ereg IF statment does match the
pattern and echo "Bad Password".

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=16358&edit=1

Reply via email to