不知道為何老搜不到,使用require_once命令導入的HTML文件沒法加載js腳本,於是只能另謀他路,終於實線了,代碼為
<?php
header("Content-type:text/html;charset=gb18030"); //1312 gbk
echo "-----------插入的HTML內容如下----------------";
echo '<br>';
echo "<title>書到用處方恨少</title>";
echo"<a href='./man/哈代.html'>1、哈代</a>";
echo '<br>';
$str = ".";
for($i=0;$i<20;$i++)
{
echo "<br>";
echo $str;
}
echo "<a href='http://zhidao.baidu.com'>n-1、百度知道</a>";
echo '<br>';
echo"<a href='http://www.baidu.com'>n、百度</a>";
?>
效果為

次級頁面的效果為

