If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

You can change the page = "secretpage" + ".html"; to whatever you want. The passwords are stored in arrays, I have just made the passwords u1, p1 for username1 and password1, but you can make them whatever you want.

I see, so you think that information on creating and submitting forms is irrelevant to creating a login form?

There are two main parts to a working user login. The HTML form and the server-side program (unless you use insecure client-side scripting). Thier question was posted in the HTML forum hence they received the HTML answer. The official docs would be a far better place to learn than someone's personal page. As far as the server-side programming, they won't be able to view this from your site anyway, unless you provide a text document of the source.

Yeah, I know. I made this just for fun, not for something secure. I don't have my own domain, so I am not able to use sercure server-side scripting. I put this in an external JS, just to keep amateurs out. Anybody else could get in.

You can change the page = "secretpage" + ".html"; to whatever you want. The passwords are stored in arrays, I have just made the passwords u1, p1 for username1 and password1, but you can make them whatever you want.

Okay guys, I used Zach Elfers's code and it worked fine for me, and now the question is, how do I code the check box to remember my user name and password every time I log on...... Like in the code below.....

NB: I copied Zach's code and only inserted a check box.... Run it and see how it looks like...

one bad thing

all you have to do is copy the url of your home page and you dont need to login. is there a code to block the page until you log in, i kno they have like a two line code in asp and php, but i dont like either of them.