i have a simple question..
in registration script.. how can i set the limit character of a password. sample: minimum character is 6.. so what will be the code. please help me. :-(
i have a simple question..
in registration script.. how can i set the limit character of a password. sample: minimum character is 6.. so what will be the code. please help me. :-(
Javascript code:
var el = document.getElementById('field_id');
if (el.value.length >= 6)
{
alert('OOps');
}
PHP Code:
if (strlen($_POST['field_name']) >= 6)
{
// more than six chars entered !!
}