Thread: log in and password code
Results 1 to 8 of 8
add code for font size under php echo code Forum: PHP ForumReplies: 0
Password Code Forum: HTML ForumReplies: 6
Ignore code and link greeting note code Forum: HTML ForumReplies: 3
Does anyone know a HTML code for doing a password for you site? Forum: HTML ForumReplies: 1
03-16-2002, 01:00 PM #1
maybe this should of been posted on another board, but oh well.
what's the simplest way to set up a login & password to enter an admin site? there are only two users right now, but i want them to be able to log on from the public site. i've never set up anything like this before so any help would be appreciated.robert koons
03-16-2002, 02:57 PM #2
The simplest way (and only secure way really) is to set up some kind of serverside language with a database. I myself would use PHP and MySQL.
03-16-2002, 07:17 PM #3
mysql or any database is not essential.
php, asp, perl, anything can be used as long as you make the 'password' file outside the public access.
However, all these scripts 'fake' authentification using http headers. The only, real way, to make something secure is to use .htaccess.
Find a tutorial on .htaccess here -
03-16-2002, 08:18 PM #4
In PHP isn't that using the crypt() function and HTTP-authentification? Even doing that we did some kind of mysql check. Unless using cookies, which can be easily manipulated, how could he do it?
03-17-2002, 07:07 AM #5
If you have got mysql, then it is easier to use it. However, if you havent, you can use text files and stuff to actually store the data.
You would track the user using sessions, if you needed to.
03-17-2002, 10:34 AM #6
well, i went to webmonkey and read that tut. maybe i'm trying to make this harder then it really is. everything made sence, but they were a bit vague on what you do with the .htaccess and how that relates to the html files. do the html files go in the same directory as the .htaccess files?robert koons
03-17-2002, 11:08 AM #7
03-17-2002, 07:07 PM #8
lol text file duh... but then again I'm forgetting he said "the simplest way" so a text file would probably be it.