发布网友 发布时间:2022-04-23 00:28
共1个回答
热心网友 时间:2022-04-07 12:11
<form method="post" action="18.3_index.php"> <input type="hidden" name="savepost" value="1" /> <table width="490" height="180" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="490" align="center" height="40" colspan="2">添加公告信息</td> </tr> <tr> <td width="90" align="center">公告主题:</td> <td width="400" height="30" align="left"> <input name="txt_title" type="text" id="txt_title" size="40" /> * </td> </tr> <tr> <td width="90" align="center">公告内容:</td> <td width="400" height="80" align="left"><textarea name="txt_content" id="txt_content" cols="50" rows="4"></textarea></td> </tr> <tr> <td width="490" height="30" colspan="2" align="center"> <input name="submit1" type="submit" class="btn_grey" value="保存" onClick="return check(form1)" /> <input name="submit2" type="reset" value="重置" /> </td> </tr> </table> </form> <?php if (isset($_POST['savepost']) && $_SERVER['REQUEST_METHOD'] == 'POST') { $conn=mysql_connect('localhost','root','') or die