Originally posted by snig08
ok i have my website designed how i want it and all the pages are .php i know how i can add a login feature using php and mysql but i need to make it so people logged in can post a comment. i need to know what steps i should take before coding all willy-nilly. i have a feeling i would need to use cookies?? ps i dont want the ugly windows login box popping up
A log-in feature is a relatively simple task. If you're planning on building a website though, often times selecting a
You must login or register to view this content. (such as
You must login or register to view this content.,
You must login or register to view this content., or
You must login or register to view this content.) is the best and easiest choice. If you insist on writing it yourself, a PHP
You must login or register to view this content. is a good choice, popular ones include
You must login or register to view this content.,
You must login or register to view this content.,
You must login or register to view this content.,
You must login or register to view this content., and
You must login or register to view this content..
Personally, I'm partial to the Ruby programming language, and the Ruby on Rails framework.
Also, if you're planning on adding front-end code, you'll need to use JavaScript. I generally rely on jQuery when writing JavaScript.
On a side note, having trouble implementing a simple feature, such as a login system, is an indication of lack of knowledge and ability, as such, you should attempt to learn more about web development before attempting to build such a feature.
Hint: You can use cookies, however you'd only do this if you wanted to allow the user to remain logged in between browsing sessions.