<?php
include ("conn.php");
$id=$_POST['id'];
$user=$_POST ['用户'];
$title=$_POST['标题'];
$content=$_POST['内容'];
if($_POST ['提交']){
$sql="插入消息(id,用户,标题,内容,最后日期)VALUES('','$user','$title','$content' ,now())";
mysql_query($sql);
echo "
}
?>
亚连2018-06-11 09:24:28
echo "<seript>alert('提交成功');location.href='add.html';</seript>";你仔细看看这个语句有什么错误?