Ok here is my coding. The design_start and design_end functions just output HTML designs. When I load this I get the following error:
Notice: Undefined variable: go in C:...\try.php on line 7
news (default)
<?php
include("libs/design.php");
include("libs/modules.php");
design_start();
switch ($go) //<--------line 7
{
case 'news':
print "news";
break;
case 'solutions':
print "products/solutions";
break;
case 'contact':
print "contact";
break;
case 'clients':
print "clients";
break;
case 'about':
print "about us";
break;
case 'support':
print "service/support";
break;
default:
print "news (default)";
break;
}
design_end();
?>
The problem is I am trying to pass a variable through the web address such as try.php?go=news would display "News" etc....
I have done many websites before with this structure and this has never happened before... can anyone help me?
Also, note, this is the first time I put PHP on a Windows 2000 Server... maybe the problem stems from that?