Yes, but we might need to see code. You may wish to look on the web for "PHP Global Variables", or something like that.
Old PHP usage was something like this:
echo "<a href='http://somethinghere.tld/some/path/$var/$var2'>Click here</a>\n";
So, $var and $var2 might have come from the URL, and these variables had global scope. This was pretty dangerous though.
If you want to do something like the above now, you should do something kind of like this:
if (isset($_GET['var'])) {
$var = $_GET['$var'];
}
if (isset($_GET['var2'])) {
$var2 = $_GET['$var2'];
}
echo "<a href='http://somethinghere.tld/some/path/$var/$var2'>Click here</a>\n";
Technically, it may be even more tricky, but this might get you going (it's safer, for example to use filter_input() in some cases, and there are security issues involved in a straight assignment ($foo = $_GET['foo']) without doing some type checking or other checking of user-generated input.