<form name= "Form1" method= "Post" action= ""
<label>
<input type= " Text "Name=" Tp_nam
</label>
<label>
<input type= "Submit" name= Submit "value="
</label>
</form>
//php MySQL message board code
$TP _ Time = $other->shorttime ();
if ($_post[' Tp_nam ']!= "") {
//-------Add start-------------
$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 "<script> alert (' Validation code input error '); window.location.href= ' www.111cn.net ';</script> ';
}
-----------Add End-----------
if ($res = = 1) {
echo "<script>alert" (' Operation successful! '); Window.close ();</script> ";
Exit ();
} else {
echo "<script>alert (' Don't repeat post, come back in five minutes!") '); Window.close ();</script> ";
}
}
?>