So I'm trying to make a website in php. I'm just wondering, when I click on a link is there any way for the text of the link to be put into a variable. Basically the user will select the name of a database(which is a hyperlink to a menu page), and this will get stored into the database variable to use for the connection.
So the link will be something like "database1" for example. When the user clicks on this link i want it to make a variable storing "database1" so that it can be used in later pages for queries. So in a later page you will be able to view all of the tables that are stored in the database you're on at that time, so it will use the variable in the query for when that page loads, for example.