Code: Select all
<?php
if(!ereg("[a-zA-Z0-9]{5,15}", $password))
{
$form->error[] = 'Your password is invalid, password must be letters and numbers only, must have atleast 1 digit and should be 6 to 15 characters in length';
}
?>thanks
- Qads -
Moderator: General Moderators
Code: Select all
<?php
if(!ereg("[a-zA-Z0-9]{5,15}", $password))
{
$form->error[] = 'Your password is invalid, password must be letters and numbers only, must have atleast 1 digit and should be 6 to 15 characters in length';
}
?>Code: Select all
if(! ( ereg("[a-zA-Z0-9]{5,15}", $password) && ereg("[0-9]+", $password) ) )