<?php //the contents $contents = array ( "nothing in page 0", "page 1 is here", "page 2......" ); //output the current date echo "Current Date:" . date('r') . "<br />"; //echo the content of the page based on the query string echo "content for this page: " . $contents[$_GET['page']]; ?>
Current Date:Thu, 21 Dec 2000 16:01:07 +0200<br /> page 1 is here