2
In page2.php, the variable should be accessed as $_GET['name']. For example:
$name = $_GET['name'];
This happens automatically if the PHP configuration parameter
register_globals is on, but that can be insecure, so it's better to use $_GET (or $_POST) explicitly as above.