background image

<a href=http://www.chuangxin.biz/htmldata/2005-03-05/'index.php?p=Page2'>page 2</a><br />
</p></td>
<td width="360" height="400" valign="top">
<p>
<? 
function index()
{
echo "<p align=center>Welcome to this tutorial<br />Here you can find funny 
tricks</p><br /><br /><br /><br /><br /><br />"; }

choice=$_GET['p'];

switch($choice)
{
case "Page1":

echo "<p align=center>Page1 text, img and so on here</p>";
break;

case "Page2":

echo "<p align=center>Page2 text, img and so on here</p>";
break;

default:
index();
}

?>

</p>
</td>
</tr>
</table> </center>
</body>
</html>

  以上文件必须保存为

index.php

  高级分页的代码:

<html>
<head>
<title>chuangxin.biz</title>
</head>