提示错误!!
Notice: Undefined index: text in E:\webdevelopment\www\speak.php on line 8speak.php<?php session_start();?>
<html>
<head ><title>发言</title></head>
<body><?php
require_once("sys_conf.inc");
if($_POST["text"]) //这是第8行
{
$link_id=mysql_connect($DBHOST,$DBUSER,$DBPWD);
mysql_select_db($DBNAME);
$time=date("h:i:s");
$author=$_session["user_name"];
$str="INSERT INTO chat(creat_time,author,text) values('$create_time','$author','$text');";
mysql_query($str,$link_id);
mysql_close($link_id);
}
?><html>
<head ><title>speak!</title></head>
<body>
<form action="speak.php" method="post">
<input type="text" name="text" cols="20">
<input type="submit" value="发言" >
</form></body>
</html>php