Hey, I was just playing around in notepad++ and decided to see how long will it take me to make a simple basic login/registration system with sessions.
So if anyone is interested here are the files:
by the way, I am just 100% sure it's not the pro way, but I am not a pro anyways, I am just a guy who's in college and we do web dev but don't do php so I went ahead and started learning it on my own, so if you are learning on your own, you might be interested in this. Also would be great for feedback and suggestions of what to improve in this code for my and others future reference.
It's just 7 files but technically all this could be done in 1 long file.
I didn't bother with styling up it fancy and so, just made rough.
index.php - main homepage.
process.php - all processing and actions.
css/main.css - obvious crappy style.
includes/sql.php - sql connection (I removed my details)
includes/menu.php - menu bar
includes/sessions.php - sessions file.
includes/functions.php - contains some functions.
Hopefully someone will find it useful.
in live example: