【php开源代码栏目提醒】:网学会员鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“check_comment.php”一文,供大家参考学习
<?php
session_start();
include "conn/conn.php";
if($_POST["submit"]=="提交"){
$_Session[file_id]=$_POST[htxt_fileid];
$content=$_POST[txt_content];
$username=$_POST[username];
$datetime=date("Y-m-d h:m:s");
$INS="Insert Into tb_filecomment (fileid,username,content,datetime) Values ($_Session[file_id],'$username','$content','$datetime')";
$info=mysql_query($INS);
if($info){
echo "<script> alert('成功发表评论!');</script>";
echo "<script> window.location.href='comment.php?file_id=$_Session[file_id]';</script>";
}
else{
echo "<script> alert('评论发表操作失败!');</script>";
echo "<script> window.location='comment.php';</script>";
}
}
?>
上一篇:
check_classadd.php
下一篇:
关于连续型条件属性的模糊规则约简算法