Jump to content

form button help


sprint10s

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.