frnkzks
09-09-2005, 10:21 AM
I am trying to write a JavaScript that checks (and prompts the user, if the password is invalid) that the password length is between 4 to 10 characters, and the password contains only numbers and characters.
Please help!
<form action="" method="post">
<table border="1" bgcolor="#efefef" width="100%">
<tr>
<td align="right">Password:</td>
<td><input type="password" name="password" size="50" maxLength="10"> <font
size="-1" color="red">Password length must be 4 to 10 characters</font></td>
</tr>
</table>
</form>
Please help!
<form action="" method="post">
<table border="1" bgcolor="#efefef" width="100%">
<tr>
<td align="right">Password:</td>
<td><input type="password" name="password" size="50" maxLength="10"> <font
size="-1" color="red">Password length must be 4 to 10 characters</font></td>
</tr>
</table>
</form>