sprint10s Posted June 16, 2009 Share Posted June 16, 2009 i think im confusing my self more than anything. below is the code i used on a form to pull the username and password based on a company_id and was able to login to a admin account. it goes through a auth file first before logging in. My question is what if i got three accounts with the same company_id of 28 and i want to be able to login to the three different accounts with three different buttons. i got button one asJohn, button 2 as Matt, button 3 as Kyle all have same company_id but have different usernames and passwords. below is the code i use to login to the admin accounts for all the other companies <form name="form_<? echo $Company_ID; ?>" method="post" action="../auth.php" target="_blank"> <input type="hidden" name="User_Name" value="<? echo $User_Name; ?>" /> <input type="hidden" name="Password" value="<? echo $dec_password; ?>" /> <input type="submit" value="Login »" /> </form> Link to comment https://forums.phpfreaks.com/topic/162392-form-button-help/ Share on other sites More sharing options...
premiso Posted June 16, 2009 Share Posted June 16, 2009 Why not just use the username/password as the unique authenticate then when they are logged in, show them the companies they are authenticated for and allow them to choose that way? With like a drop down or something similar. Link to comment https://forums.phpfreaks.com/topic/162392-form-button-help/#findComment-857145 Share on other sites More sharing options...
sprint10s Posted June 16, 2009 Author Share Posted June 16, 2009 because on all the other ones we want to quickly log in to the admin accounts so we can see what the problem is all other companies only have one admin account this other account that has three are used for demo purposes and we want to be able to click each button withe person's name on it and log in quickly to their demo account. This form is used for administrative purposes only Link to comment https://forums.phpfreaks.com/topic/162392-form-button-help/#findComment-857148 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.