Small Problem!
Posted: Sun May 26, 2002 7:47 am
This is quite a simple question, but me being new to PHP am finding it a little puzzling...
I have this...
Which links my pages together ?content=code to the code page, and whatnot.
The problem I have is when I go to index.php I get these warnings...
I have this...
Code: Select all
<?
if ($content == "code") { code(); }
else if ($content == "portfolio") { portfolio(); }
else if ($content == "communicate") { communicate(); }
else { news(); }
?>The problem I have is when I go to index.php I get these warnings...
Im not sure how to get rid of these warnings... I understand why I am getting them, but I cant seem to get rid of them. Any help would be apprectated.Warning: Undefined variable: content in C:\Inetpub\hosted\synister.org\index.php on line 63
Warning: Undefined variable: content in C:\Inetpub\hosted\synister.org\index.php on line 64
Warning: Undefined variable: content in C:\Inetpub\hosted\synister.org\index.php on line 65