PHP基础PHP教程php框架JavaScript
asp.netAJAX正则表达式ASP
js 代码被当做模板解释了吧?
include ('./global.php');if($_POST['submit']){ $sql="INSERT INTO `message`(`id`, `user`, `title`, `content`, `lastdate`) " . "VALUES ('','$_POST[user]','$_POST[title]','$_POST[content]',now())"; $query=$db->query($sql); echo "";}$smarty->display("message.htm");
请使用literal标签,包含js块 http://smarty.jz123.cn/language.function.literal.html