I am getting a syntax error and I cant figure out why.. here is the code.
Code: Select all
<?php
//check for cookies and open session
include ('affilliate.inc.php');
//controller info
if(isset($_GET['goto'])
{
$goto=$_GET['goto'];
switch($goto)
{
case ('howworks'):
include('pages/howworks.html.php');
break;
case ('offers'):
include('pages/offers.html.php');
break;
case ('contact'):
include('pages/contact.html.php');
break;
default:
include('pages/error.html.php');
}
//SYNTAX ERROR HERE
}
?>