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.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -