Log in

View Full Version : html login script



smithster
01-04-2007, 01:28 AM
I want to make an admin only page for which the link to it will be on my index.html page. I have seen before, when a person clicks on a link to a page which needs authorising, a nice box comes up in the middle of the screen asking for a username and password.

Can someone tell me what I need to beable to do that myself? Can it only be done with a mysql database? I'd rather not use mysql or PHP. Can it be done with html?

Thanks in advance.:cool:

mburt
01-04-2007, 01:51 AM
Can it be done with html?
No. :)

thetestingsite
01-04-2007, 01:57 AM
You can make the login screen using HTML, CSS, etc, but in order to do the login itself you would need to use a server side language (PHP,ASP, etc). You could use Javascript for this as well, but that is pointless as it lacks security. Anyone could view your page source and see that the list of usernames / passwords. As opposed to using a server-side language with some kind of database, this adds a little security to it.

Hope this helps.

mburt
01-04-2007, 01:59 AM
I'd rather not use mysql or PHP

but in order to do the login itself you would need to use a server side language (PHP,ASP, etc)

...:)

GhettoT
01-04-2007, 03:01 AM
Why don't you want to use PHP? Does your server/host not allow it?

smithster
01-04-2007, 09:55 PM
I can use PHP/MYSQL, I just dont really know how to at the moment! I am still learning. I will keep searching about for a script. Maybe I will have to use PHP then. Javascript as you said deffinately isn't secure enough!! I am more bothered about the login appearance really. I thought it was HTML! For example, if I login to my router it brings up a box in the centre of the screen, which looks like a windows box. It asks for a username and a password. That is the style I want and I am sure I have seen other people with them on their websites.

:cool:

Twey
01-04-2007, 10:54 PM
That's an HTTP 401 prompt. Check out the generator (http://tools.dynamicdrive.com/password/) for Apache.

mburt
01-05-2007, 12:46 AM
Javascript can't store information. Period. That's why you use a server side language.