I have seen other questions somewhat relating to this, but not exactly.
I am working on a php project for a class, and I am trying to get my thoughts in order before I commit to writing.
If you could look this over and give me some feedback it would be great.
what I am looking to do, is upon viewing the main page, the user can view posts, but not post unless they are logged-in.
So I am thinking my main page has to check for cookies, and if they are not logged in give them a username of guest.
If they want to post they need to login, so I would need to open a database connection to mysql checking the table for the username.
If they exist set the cookie or maybe a session (not sure) to the username changing guest to subscriber allowing the user to post.
any thoughts?
thanks in advance.
2007-02-02
14:05:25
·
3 answers
·
asked by
?
3