tags:

views:

32

answers:

3

How to create a login form in html without using php. I'm doing this for an administrator account so that the admin information cannot be found on a database. Any idea on how to do it?

A: 

You must use some server side authentication method analogous to PHP. If there's nothing on the server, what are you going to "log in" to? If your only authentication was some client-side JavaScript mess, a right-click and "View Source" would let anyone see what you're doing.

Jonathon
+1  A: 

If you're willing to forgo the "HTML" requirement then you can still use HTTP's built-in auth capabilities (relevant docs for httpd).

Ignacio Vazquez-Abrams
A: 

Technically you could use an htaccess and htpasswd file combination to handle authentication, but it's not very secure, if at all (HTTP BASIC authentication is insecure...). That would secure all of the files in the directory that the .htaccess file resides in (the .htpasswd file can (and should) be in a non-accessible directory by the web server).

Again, I VERY strongly advise you to NOT go this route.

Jason B