Differentiate between admin login and user login in php -
i new php, trying create login page form as
<form action="welcome.php" method="post"> login: <input type="text" name="name"><br> password: <input type="password" name="password"><br> <input type="submit" value="login admin user"> <input type="submit" value="logins student">
i want differentiate,which submit button user clicked , direct him corresponding page
i.e if click login user should forward adminlogin.php or vise versa.
just add status column database status=1 , status=0 if status 1 found admin , status 0 found user.