Используйте это:
//On page one: <a href="secondPage.php?value=sun">click me</a> //On page two: //you can get the value by using this <?php $value = $_GET["value"]; ?> The <span id="passedWord"><?php echo $value; ?></span> is shining!