Ok, my site is currently using the links like that (just ?page=something type), but I can't understand how to get the
?page=something&something=somethingelse to work (with the
second variable.)
Could anyone write a basic template on how to nest the php statements.
What I have so far. (note: I always use single quotes, double quotes mess up for me.)
<?
$page = $_GET["page"];
if (( $page == "home") or ( $page == "")) { echo ('
-the main stuff
');
} else if ($page == "anime") { echo('
The Anime Section</center></td></tr></table>
<table><tr><td width="20%" valign="top">
<table align="center"valign="top" width="100%"><tr>
<td width="60%" align="center" valign="top"> <center>Anime</center></td></tr></table>
<li><a href="?page=anime&anime=main">Main</a>
<li><a href="?page=anime&anime=watch">Watched</a>
</td><td width="80%">
<script language="php"> // a second php statement
$anime = $_GET["anime"];
if ($anime == "main") { echo ('
What is Anime? A question you might ask. "Anime" can be a variety of things, but most commonly it\'s a japanese cartoon (etc, etc, etc... I get a parse error at it\'s... there's a forward slash in front of the single quote, but it's not showing. It's there because the first php thing messes up if they're not slashed.)
</td></tr></table>
');
} else if ($anime == "watch") {
echo (' watched list</td></tr></table>
');
}
</script> // end of the second php statement, and the rest of
//the page continues with the old php thing. These aren't
//in the page, but I don't think they'd hurt it.
');
} else if($page == "fun") { echo('
Any basic template to use two variable addresses would be greatly appreciated. Even better if they could be with single quotes.