Login in php? | Sololearn: Learn to code for FREE!
+ 1

Login in php?

How I make the user and admin login with different pages in one button

5th Feb 2019, 9:28 PM
Mansour Khalid
3 Answers
+ 2
//First of all registering users //login user //Use session to to use user logged in data across multiple pages /simple example with source code http://codewithawa.com/posts/complete-user-registration-system-using-php-and-mysql-database
5th Feb 2019, 10:38 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
You need to check with sql if user trying to sign in is a normal user, if yes then redirect to respective page. If not, check if its an admin, if yes redirect to respective page, if not then its a wrong username/password
5th Feb 2019, 11:47 PM
Dominique Abou Samah
Dominique Abou Samah - avatar
thank you for helping me
6th Feb 2019, 9:08 AM
Mansour Khalid