...

View Full Version : Password Protected 'Login' for Comments



CSS
11-13-2007, 09:09 PM
I'm making a website for a group of friends of mine in PHP that is going to password protected and given out to about 5 people. Logging into the site will basically identify who's been to the site, as each of the 5 will be given a different password. After logging in, they will just be directed to a page with a "Comments" field, and then comments left by other people displayed above it.

As the enter their comment and post it, their 'name' will automatically be determined by what password they login with. For example:

Jdh7GA5 - Frank's password to login to the website
Kz08Nba - Dan's password to login to the website

If someone logs in with the password Jdh7GA5 and submits a comment, the comment is displayed as "Frank: (his comment here)"

I'm having trouble constructing this myself.

aedrin
11-13-2007, 09:42 PM
Alright. What have you done so far, and what are you not sure of?

Fumigator
11-13-2007, 09:56 PM
The easiest way to do this would probably be via HTTP request authentication. Google HTTP authentication for more info.

ConnorMHB
11-13-2007, 11:07 PM
which part do you need help with? the comments part, or the password part? i'm definitely not the most experienced programmer here, but i could easily show you a way to determine the user's name by their password with the comments. (please note my way will require a database.)

CSS
11-14-2007, 01:19 AM
which part do you need help with? the comments part, or the password part? i'm definitely not the most experienced programmer here, but i could easily show you a way to determine the user's name by their password with the comments. (please note my way will require a database.)

I need help with the password part, storing the person's name effectively as they enter their password for it to be displayed as they enter a comment. I'm not good at all with SQL, and I was wanting to store everything in a database, really... the passwords/names, as well as a list of comments, ordered by time posted and by whom.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum