[SOLVED] Add Combobox to Login Page |
7/10/2020 14:33:59 | |
| PHPRunner General questions | ||
|
A
asawyer13 authorDevClub member
I want to add a combobox to the login page so the user can select which database they want to use.
|
||
|
|
Sergey Kornilov admin 7/11/2020 |
|
First, you need to fix your code snippet. echo "Select Database:";
if ($_POST["database"]=="Dev")
$host="localhost"; |
|
|
A
|
asawyer13 authorDevClub member 7/11/2020 |
|
Sergey, |
|
|
A
|
asawyer13 authorDevClub member 7/12/2020 |
|
Almost solved.. |
|
|
A
|
asawyer13 authorDevClub member 7/12/2020 |
|
I'm thinking it has to be an issue with the session variable not being set, but I did try setting it in the after app initialization event. |
|
|
A
|
asawyer13 authorDevClub member 7/12/2020 |
|
In case I made a typo or something this is what's in my Dynamic Connection that I added. I am changing IP and password to protect the info. |
|
|
|
Sergey Kornilov admin 7/13/2020 |
|
Make sure, that the code is added to correct events. if (!empty($_SESSION["database"])) { |
|