First, you will have to start a session in Page2.php
start by calling (at the top of your page)
<?php
session_start();
//post your data
$person = $_POST['person'];
$_SESSION['person'] = $person;
?>
You will have to have the inputs be wrapped inside of a form:
<form method="post" action="Page2.php">
<input type="radio" name="person" value="p1"/>Person1
<input type="radio" name="person" value="p2"/>Person2
<input type="submit" value="submit"/>
</form>
Now you will be able to use that $_SESSION variable on mostly any page, if the session is not destroyed or overwritten.
To retrieve a session value on another page, simply use:
<?php
session_start();
$person = $_SESSION['person'];
?>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…