//php mysql留言板代码 $tp_time = $other->shortTime(); if ($_POST['tp_nam'] != "") { //-------添加开始------------- $tp_name = $_POST['tp_nam']; $tp_cOntents= $_POST['message']; $at_id = $_POST['at_id']; if (!isset($_POST['chkkd'])) { exit(); }
if ($_POST['chkkd'] == $_SESSION['CodeNum']) { $_SESSION['CodeNum'] = ''; $res = $tpEdit->tpInsert($tp_name, $tp_contents, $tp_time, $at_id, $col_id, 0, 0); } else { echo ""; } //-----------添加结束----------- if ($res == 1) { echo ""; exit(); } else { echo ""; } } ?>