I would desperately appreciate some help!
It is returning an unexpected $end error. I am totally new today to PHP, so go easy on me!Code:<?php // 1. Define an array of allowed $_GET values: $pass = array('faf-getting-started','faf-rules','faf-ideas','faf-etc'); // 2. If the page is allowed, include it: if (in_array($_GET['p'], $pass)) { include ('page/' . $_GET['p'] . '.php'); } // 3. If there is no $_GET['p'] defined, then serve the homepage: elseif (!isset($_GET['p'])) { include ("index.php"); } // 4. If the page is not allowed, send them to an error page: else { // This sends the 404 header: header("HTTP/1.0 404 Not Found"); // This includes the error page: include ("inc/error.php"); */ ?>


Reply With Quote

Bookmarks