Hi I had a form validation script with me. that is
<head>
<script type="text/javascript">
function validate_required(field,alerttxt)
{
with (field)
{
if (value==null||value=="")
{alert(alerttxt);return false;}
else {return true}
}
}
function validate_form(contact)
{
with (contact)
{
if (validate_required(username,"Userame must be filled out!")==false)
{username.focus();return false;}
}
}
</script>
</head>
<body>
<form action="password_process.php" method="post" name="contact" onsubmit="return validate_form(this)">
</body>
This works fine for me. Now I need to check whether the user must enter minimum 6 letters in the box. Please help me how to do that or any changes in the same script is possible.......
Please help me....
Thanks in Advance