Hi! I need some help with a school workshop. It's one simple task. This has something to do with password. I have already done a password protection through prompt but this time, i do not want it to prompt. The user will input the username and password on a single html page.
I am supposed to make an html page which contains a textbox and a password input type and also a login button. The user must input a username and password. Upon clicking the login button, if both password and username are correct, a small window with specific length and width pops-up. If either of the username or passord is incorrect, the user the window will not popup.
I cant seem to proceed to the popup window due to the login process problem.
So you're saying if uname=myuname and pword = pass, open the window. That's all good, because myuname = 'juan' and pword = '123' (as specified in your script), but what are the variables uname and pass equal to?
01-16-2011, 07:09 PM
your prodS() needs to get the values from the username/password textboxes
var username = document.getElementById('uname').value;
var password= document.getElementById('pword').value;
01-16-2011, 09:30 PM
hey! Thraddash, aj_nsc and tirna!
Thanks for the help... now i get it... Its working now! I completely forgot about that "var" thing!!!
We'll, thanks for helping one stupid noob here! LOL!