hi i have a dought in password creation pls help me

0 views
Skip to first unread message

kuttus

unread,
Jul 5, 2009, 4:09:29 AM7/5/09
to Professional PHP Developers
<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....



pls give me a quick reponce through a runing program i need it urgent

Robert Gonzalez

unread,
Jul 5, 2009, 5:12:02 PM7/5/09
to Professi...@googlegroups.com
Are you trying to use PHP without the opening PHP tag?
--
Robert A. Gonzalez

C. (http://symcbean.blogspot.com/)

unread,
Jul 6, 2009, 8:12:31 AM7/6/09
to Professional PHP Developers
On Jul 5, 9:09 am, kuttus <denniis...@gmail.com> wrote:
<snip>
>
> 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....
>
> pls give me a quick reponce through a runing program i need it urgent

This looks to be off topic - your javascript code is full of bugs. You
seem to be confused about what PHP and javascript do. You've got what
looks like a PHP variable name being used as a javascript variable
name. The way you are trying to change the HTML of the page is just
plain broken and will never work.

Forget about PHP for now and go learn Javascript / ask on a javascript
how to do this.

C.

Reply all
Reply to author
Forward
0 new messages