Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. if (isset($_GET['page']))
  2. {
  3.     // The GET argument is present. Lets include the page.
  4.     include($_GET['page'] . ".php");
  5. }
  6. else
  7. {
  8.     // The GET argument is not present. Lets give the poor guy some links!
  9.     echo('<p><a href="index.php?page=1">Page 1</a></p>');
  10.     echo('<p><a href="index.php?page=2">Page 2</a></p>');
  11.     echo('<p><a href="index.php?page=3">Page 3</a></p>');
  12. }