我必须创建一个两栏式网站,左侧是菜单,右侧是内容。我有这个索引文件-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Admin</title>
</head>
<frameset border="0" frameborder="0" rows="15%,*" framespacing="0">
<frame src="atop.html">
<frameset cols="22%,*">
<frame src="amain.html" />
<frame src="ad.php" name="content" id="content"/>
</frameset>
</frameset>
</html>
atop.html 在哪里-
<!DOCTYPE HTML>
<html>
<body>
<center><h1><u>Admin</u></h1></center>
</body>
</html>
amain.html 是-
<!DOCTYPE html>
<html>
<body>
What do you want to do?<br />
<a target="content" href="ad.php?q=csr">CREATE STUDENT RECORD</a><br />
<a target="content" href="ad.php?q=dasr">DISPLAY ALL STUDENTS RECORD</a><br />
<a target="content" href="ad.php?q=dstr">DISPLAY SPECIFIC STUDENT RECORD</a><br />
<a target="content" href="ad.php?q=msr">MODIFY STUDENT RECORD</a><br />
<a target="content" href="ad.php?q=dsr">DELETE STUDENT RECORD</a><br />
<a target="content" href="ad.php?q=cb">CREATE BOOK</a><br />
<a target="content" href="ad.php?q=dab">DISPLAY ALL BOOKS</a><br />
<a target="content" href="ad.php?q=dsb">DISPLAY SPECIFIC BOOK</a><br />
<a target="content" href="ad.php?q=mb">MODIFY BOOK</a><br />
<a target="content" href="ad.php?q=db">DELETE BOOK</a><br />
<a target="content" href="ad.php?q=cp">CHANGE PASSWORD</a><br />
</body>
</html>
和 ad.php 是-
<html>
<body>
<?php
$q=$_GET['q'];
echo $q;
?>
</body>
</html>
主要问题是它不能正常工作。代码有什么错误,请告诉我。我会非常感谢你的!!