hi i have a dought in password creation pls help me

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kuttus
Forum Newbie
Posts: 15
Joined: Sun Jun 21, 2009 3:48 am

hi i have a dought in password creation pls help me

Post by kuttus »

<html>
<head>
<script type="text/javascript">
function ki(x)
{
var y=document.getElementById(x).value;
var k=3;
var g=6
if(y>k)
{
$q=document.write('<table id=12 border=0 cellpadding=0 cellspacing=0 width=180><tr><td height=4 bgcolor=#e0e0e0 width=0%></td></tr></table>');
}

}
</script>
</head>
<body>

Password <div><input type="password"
id="pass" onkeyup="ki(this.id)" /></div><?php echo"$q";?>

</body>
</html>

this is the program i used to display the password strngth image but here the problem i am facing is while in entering the 2 letters the image is coming up and the text feild is going up so kindly help me to do this like i need to show in the field of password while entering the 5 letters it should rate the tag half green and which should be beside to the entering feild and while continuing the same text feild entering the 7 it should display full green bar as strong so pls help me to do this waiting for the responce....
Post Reply