KaFF Posted February 28, 2007 Share Posted February 28, 2007 Hi there, Was wondering if anyone could help me with creating a mutli user logon! I can currently logon with the variable userid, but also want my logon to look for another variable called secretaryid. They are seperate tables in my database and both have a password assigned to them. I need it to look at if its a userid then check whether the userid password matches, else look at if it is a secretary id. If it is a secretary then check whether the password matches the secretaryid. Else dont log on. If anyone could help, would be a great relief to me!! Cheers KaFF Link to comment https://forums.phpfreaks.com/topic/40614-mutiple-user-logon/ Share on other sites More sharing options...
boo_lolly Posted February 28, 2007 Share Posted February 28, 2007 we're gonna need a little more information than that, bud. what do your tables look like? how does your page function as of right now? what specific features would you like to add? or would you like to rewrite the existing code to be more dynamic? Link to comment https://forums.phpfreaks.com/topic/40614-mutiple-user-logon/#findComment-196437 Share on other sites More sharing options...
KaFF Posted February 28, 2007 Author Share Posted February 28, 2007 If yo go to the link below it will show you my current database. http://server6.theimagehosting.com/image.php?img=dfd.19c.jpg My page currently functions using the code below by looking for the userid and password, this gets passed to a logincheck and if these are not found then no logon if they are then the user is redirected to the homepage. <head> <div align="right"><img src="logo_tagline.gif"> <br> <div align="left"><span class="style3"> <?php $date=date("D-d-F-Y"); echo $date; ?> </span> </head> </div> <table width="1008" height="38" border="1"> <tr> <td width="834" height="32" bgcolor="#336600"> </td> </tr> </table> <form action="logincheck.php" method="get"> <h1 align="center">Billing System</h1> <div align="center"> <table width="248" border="1"> <tr> <td>Logon ID:</td> <td><input name="userid"type="text"></td> </tr> <tr> <td>Password</td> <td><input name="password"type="password"></td> </tr> </table> <input name="submit" type="submit" value="Login"> </div> <br> <div align="center"> <?php if(isset($_GET['message'])){ echo $_GET['message']; } ?> </div> </form> <div align="center"><head> Created by Kathryn Marriott 2006 </head> </div> </body> I use the session variable on each page aswell, so would like to be able to choose between the userid and secretaryid. As it only currently works with userid. Many Thanks KaFF Link to comment https://forums.phpfreaks.com/topic/40614-mutiple-user-logon/#findComment-196461 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.