I have a PHP variable that I am trying to be able to update by means of a $_GET request, but the first time the page is loaded, it isn't updated. After the initial page load, if I reload the page again, it is updated. Why won't it work the first time?
PAGE.PHP:
$name = 'Bob';
include('start.php');
echo $name;
START.PHP:
if isset($_GET['name']) {
$name = $_GET['name'];
}
Example: page.php?name=Mary