So I wonder if it is possible to get a variable from a specific php-file when the variable-name is used in multiple php-file. An example is this:
You could also use a session for passing small bits of info. You will need to have session_start(); at the top of the PHP pages that use the session else the variables will not be accessable
page1.php
Go to the other page
page2.php