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.
umm.. w3n i tried it out for muhself n cliked log in nutin happend buh w3n i
cliked ur thang n i clikd log in it sed da usaname or pass was wrong n how is da thang supposed ta kno? plz tell m3 or email my bak at r4nm4_saotome@yahoo.com... plz tell may aall give ya a kisss cuz aam da hottest chick round da place
Originally Posted by Zach Elfers
Here's the script for the login form. I have the JavaScript in an external file.
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.
umm.. w3n i tried it out for muhself n cliked log in nutin happend buh w3n i
cliked ur thang n i clikd log in it sed da usaname or pass was wrong n how is da thang supposed ta kno? plz tell m3 or email my bak at r4nm4_saotome@yahoo.com... plz tell may aall give ya a kisss cuz aam da hottest chick round da place
Aside from not being able to read what you said , I hope you like spam, because you entered your email address for all bots and quirky people.
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...
I get how to put the thingie on a webpage, but how do I get it to work?
And how do I place a spot for members to register? I have a freewebs site, just in case that would change anything....
Last edited by newbie10101; 11-11-2007 at 05:15 PM.
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.
Bookmarks