I'm trying to load content using PHP by using an include in my web page. I don't really know PHP but I've got this code which won't work.
	
	
	
		
the urls look like:
	
	
	
		
Here's the error: http://www.gemmahayden.com/dev/v2/index.php?page=home
To me it looks like it's not translating the variable $page? Any help would be great thanks.
	
		
			
		
		
	
				
			
		PHP:
	
	<?php	
$page = $_GET['page'];
		
if (!isset($page))	
{
$page = "home";
}
include('include/$page.txt');
	
?>the urls look like:
		PHP:
	
				<ul id="menu">
		    <li><a href="index.php?page=home">Home</a></li>
		    <li><a href="index.php?page=aboutme">About Me</a></li>
		    <li><a href="index.php?page=prices">Prices</a></li>
		    <li><a href="index.php?page=services">Services</a></li>
		    <li><a href="index.php?page=promotions">Promotions</a></li>
		    <li><a href="index.php?page=contact">Contact</a></li>
			</ul>Here's the error: http://www.gemmahayden.com/dev/v2/index.php?page=home
To me it looks like it's not translating the variable $page? Any help would be great thanks.
 
	 
  
 
		 
 
		
 
 
		 
 
		 
 
		