Post: web development login feature help
03-12-2012, 06:55 PM #1
snig08
Keeper
(adsbygoogle = window.adsbygoogle || []).push({}); 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
(adsbygoogle = window.adsbygoogle || []).push({});
03-12-2012, 08:45 PM #2
Epic?
Awe-Inspiring
Originally posted by snig08 View Post
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.

The following user thanked Epic? for this useful post:

Pichu
03-13-2012, 12:24 AM #3
snig08
Keeper
Ok i think i am on the right tracks. I think i could easily get a login system up and running now i am also going to make it so i approve peoples requests to join Smile

---------- Post added at 12:24 AM ---------- Previous post was at 12:21 AM ----------

My main concern of this login feature would be. How could i separate people who are not logged in and stop them commenting and make it so people logged in can comment.
03-13-2012, 09:01 PM #4
Epic?
Awe-Inspiring
Originally posted by snig08 View Post
Ok i think i am on the right tracks. I think i could easily get a login system up and running now i am also going to make it so i approve peoples requests to join Smile

---------- Post added at 12:24 AM ---------- Previous post was at 12:21 AM ----------

My main concern of this login feature would be. How could i separate people who are not logged in and stop them commenting and make it so people logged in can comment.


Determine if they're logged in (mark that they've successfully logged in when they do log in via a session, then check that session variable), and if they are, show them the comment box, if not, don't show it to them (or do show it, but don't process the submission).

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo