程序二:addforum.php
<html>
<head>
<linkrel="STYLESHEET"type="text/css"href="fp_zhangcg.css">
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312">
<metaname="MicrosoftTheme"content="none">
<metaname="MicrosoftBorder"content="none">
<title>发表信息</title>
</head>
<bodybgcolor="#C0C0C0"background="backcolor.gif">
<SCRIPTlanguage=JavaScript>
<;
alert("请输入您的网上大名!nPleaseinputyourusername.");
returnfalse;
}
if(document.form.forumtitle.value.length==0){
submitcount--;
alert("主题不能为空!nYoumustsupplyasubject.");
returnfalse;
}
if(document.form.forumcontent.value.length==0){
submitcount--;
alert("加贴内容不能为空!nYoumustsupplyamessage.");
returnfalse;
}
returntrue;
}
//-->
</SCRIPT>
<?
include("c:mydbheader.inc");
?>
<?
if(empty($theme_id)){
$theme_id=0;
}
?>
<tablewidth="750"border="0">
<tr>
<?
if($theme_id==0){
print'<tdclass="text">当前位置:主页——论坛——发表论坛</td>';
}
else
{
print'<tdclass="text">当前位置:主页——论坛——回复帖子</td>';
}
?>
<td></td>
</tr>
</table>
<?
print'<formaction="readforum.php?readflag=0"';
print'method=postname=formonsubmit="returncheck_com()">';
?>
<tablewidth="750"border="0">
<tr>
<tdwidth="131"class="text">
<divalign="right"><spanclass="text"><spanclass="text">您的大</span>名:</span></div>
</td>
<tdwidth="609">
<inputtype="text"name="username"size="80"value=""maxlength="12">
<fontcolor="#ff0000">*</font></td>
</tr>
<tr>
<tdwidth="131"class="text">
<divalign="right">E_mail:</div>
</td>
<tdwidth="609">
<inputtype="text"name="useremail"size="80">
</td>
</tr>
<tr>
<tdwidth="131"class="text">
<divalign="right">你的主页:</div>
</td>
<tdwidth="609">
<p>
<inputtype="text"name="userhttp"size="80"value="http://">
</p>
</td>
</tr>
<tr>
<tdwidth="131"class="text">
<?
if($theme_id==0){
print'<divalign="right">加帖标题:</div>';
print'</td><tdwidth="609">';
当前1/3页123下一页阅读全文