I know query strings and how to do it but when I put the HTML codes, there are some conflicts with the " and the " and the ;. Can you help me? Here's the code:
<head>
<title>.:: The Ice Cavern - About ::.</title>
<link rel="stylesheet" href="default.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>.:: The Ice Cavern - Staff ::.</title>
<link rel="stylesheet" href="default.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>.:: The Ice Cavern - Contact ::.</title>
<link rel="stylesheet" href="default.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
//query strings
$id = $_GET['id'];
if($id == 'about') {
echo
?>
<div id="Layer1" style="position:absolute; left:16px; top:9px; width:762px; height:14px; z-index:1">
<div align="center">The Ice Cavern Version 7</div>
</div>
<div id="Layer2" style="position:absolute; left:16px; top:59px; width:124px; height:256px; z-index:2">
<?php
include('menu_left.php');
echo
?>
</div>
<div id="Layer3" style="position:absolute; left:16px; top:28px; width:762px; height:22px; z-index:3">The
Ice Cavern > About</div>
<div id="Layer4" style="position:absolute; left:145px; top:59px; width:490px; height:256px; z-index:4">
<p>About:</p>
<p>The Ice Cavern and other contents in this site is genuine and not copied
except for the people that submitted anything. They have full copyright of
what they have submitted and is for educational purposes only. The Ice Cavern
will not be responsible for any loss or damage of your computer; so try it
at your own risk. If any tutorial you find here is defective, e-mail it at
[email]tachyon_storm@yahoo.com[/email] with the subject 'Defective Tutorial'. I will take
into consideration what you have sent and see if the mail is true. Thank you.
</p>
</div>
<div id="Layer5" style="position:absolute; left:640px; top:59px; width:138px; height:256px; z-index:5"><?php
include('menu_right.php');
echo
?>
</div>
<div id="Layer7" style="position:absolute; left:16px; top:321px; width:762px; height:46px; z-index:7">
<div align="center">[ Copyright 2002 - 2003 Zeratul ]<br>
Hosting by <a href="http://www.tripod.lycos.co.uk">Tripod Lycos UK</a><br>
Redirection by <a href="http://www.shorturl.com">shortURL</a></div>
</div>
<?php ;
} else if($id == "staff") {
echo ?>
<div id="Layer1" style="position:absolute; left:16px; top:9px; width:762px; height:14px; z-index:1">
<div align="center">The Ice Cavern Version 7</div>
</div>
<div id="Layer2" style="position:absolute; left:16px; top:59px; width:124px; height:256px; z-index:2"><?php
include('menu_left.php');
echo
?></div>
<div id="Layer3" style="position:absolute; left:16px; top:28px; width:762px; height:22px; z-index:3">The
Ice Cavern > Staff</div>
<div id="Layer4" style="position:absolute; left:145px; top:59px; width:490px; height:256px; z-index:4">
<p>Staff:</p>
<p>Webmaster/Graphics Designer: Zeratul<br>
Age: 11<br>
Nationality: Filipino<br>
Bio: Loves to eat, experiment with Photoshop, and really loves to play games.
Hates school, but loves Science. Knows advanced <a href="http://www.html.com">HTML</a>
and basic <a href="hhtp://www.php.net">php</a>, which he combines to make
a site. Right now, he is using php, which
he'll use to make a dynamic site soon. Studies php and is quite an expert in css,
but is dumb when it comes to hex colors.</p>
<p>Related: <a href="about.php">About</a></p>
</div>
<div id="Layer5" style="position:absolute; left:640px; top:59px; width:138px; height:256px; z-index:5"><?php
include('menu_right.php');
echo
?></div>
<div id="Layer7" style="position:absolute; left:16px; top:321px; width:762px; height:46px; z-index:7">
<div align="center">[ Copyright 2002 - 2003 Zeratul ]<br>
Hosting by <a href="http://www.tripod.lycos.co.uk">Tripod Lycos UK</a><br>
Redirection by <a href="http://www.shorturl.com">shortURL</a></div>
</div>
<?php ;
} else if($id == "contact") {
echo ?>
<div id="Layer1" style="position:absolute; left:16px; top:9px; width:762px; height:14px; z-index:1">
<div align="center">The Ice Cavern Version 7</div>
</div>
<div id="Layer2" style="position:absolute; left:16px; top:59px; width:124px; height:256px; z-index:2"><?php
include('menu_left.php');
echo
?></div>
<?php ;
} else {
echo "Page requested cannot be found.";
?>
Hope you can help me!🙁