我从第一个页面 输入用户 提交到第二个页面 第二个页面不能正确显示  我的第二个页面是main.php 可是第二个页面就显示blankmain.php几个字 
java爱好者 08:59:23
我的代码是   下面分别是几个页面的代码 谢谢了
<!--login.php; My----------------->
<html>
<head>
<body>
<center>
<h1>欢迎来到我我的聊天室</h1>
<h2>输入你的称呼</h2>
<form action="main.php" method="POST" target="_self">
<input type="text" name="nick" cols=20>
<input type="submit" value="登陆">
</form>
</center></body></head>
</html> 
java爱好者 09:00:02
<!--main.php-------------->
<?php
session_start();
$user_name=$_POST["nick"];
session_register("user_name");?>
<html>
<title>聊天室
</title>
<frameset rows="80%",*">
<frame src="chat_display.php" name="chat_display">
<frame  src="speak.php" name="speak">
</frameset>
</html> 
java爱好者 09:00:35
<!--speak.php---------->
<?php
session_start();
?>
<html>
<head>
</head>
<body>
<?php
require_once("sys_conf.inc");
if($_POST["text"])
{
$link_id=mysql_connect($DBHOST,$DBUSER,$DBPWD);
mysql_select_db($DBNAME);
$time=date("h:i:s");
$author=$_SESSION["user_name"];
$str="insert into chat (create_time,author,text) values ('$time','$author','$text');";
mysql_query($str,$link_id);
mysql_close($link_id);
}
?>
<form action="speak.php" method="POST" target="_self">
<input type="text" name="text" cols="20">
<input type="submit" value="发言"></form></body>
</html> 
java爱好者 09:00:56
<!--chat_display.php------------->
<html>
<head><meta http-equiv="refresh" content="5;url=chat_display.php"></head>
<body>
<?php
require_once("sys_conf.inc");
$link_id=mysql_connect($DBHOST,$DBUSER,$DBPWD);
mysql_select_db($DBNAME);
$str="select * from chat ORDER BY create_time;";
$result=mysql_query($str,$slink_id);
$rows=mysql_num_rows($result);
@mysql_data_seek($resut,$rows-15);
if(@rows<15)
$l=$rows;
else 
$l=15;
for($i=1;$i<$l;$i++)
{
list($cid,$author,$create_time,$text)=mysql_fetch_row($result);
echo $create_time; echo ""; echo "[".$author."]"; echo "说道:";
echo $text; echo "<br>";
}
@mysqli_data_seek($result,$rows-20);
list($limtime)=mysql_fetch_row($result);
$str="delete from chat where create_time<'$limtime';";
$result=mysql_query($str,$link_id);
mysql_close($slink_id);
?>
</body></html>