So I finally finished designed and building my website, it is a single page (Front.php) that displays all the menu options including register where the user can register and then the information gets stored into a database. The thing I need to understand and implement now is the idea of a user account. I'm not understanding how I should go about having login and account management. I understand that they can login, and i can just search the database for their username, and if there's a match then they can login. But where should that be handled, Front.php? Or should I have another file called Login.php, but then does it redirect back to Front.php if the login was successfull?
I'm really kind of lost on the basic file structure. Can someone explain how I should go about this?
My page is 95% jquery/html, with php only doing the inserting into the database function.