I currently have a login form, and the login form will ask for the host name of the database. I would like to pass this host/server to the connection string and then open the database.
the form action is to post another php document and in that php document it loads the information from the database.
i've tried
$dbhost = $ipAddress;
$dbhost = '$ipAddress';
$dbhost = "$ipAddress";
where ipaddress is the name of the textbox.
But neither of the above seem to work properly. I can hardcode the value for example $dbhost = XXX.XXX.XXX.XXX and this will work perfectly fine.
Any suggestions?
the form action is to post another php document and in that php document it loads the information from the database.
i've tried
$dbhost = $ipAddress;
$dbhost = '$ipAddress';
$dbhost = "$ipAddress";
where ipaddress is the name of the textbox.
But neither of the above seem to work properly. I can hardcode the value for example $dbhost = XXX.XXX.XXX.XXX and this will work perfectly fine.
Any suggestions?