Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.