一个模仿oso的php论坛程序源码(之二)第1/3页

时间:2021-05-25

程序二: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>
<!--
varsubmitcount=0;
functioncheckSubmit(){
if(submitcount==0)
{
submitcount++;
returntrue;
}
else{
if(submitcount>0){
alert("帖子已成功提交,请勿重复发帖!nDon'tsubmittheformtwice,please.");returnfalse;
}
}
}
functioncheck_com(){
if(document.form.username.value.length==0){
submitcount--;
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>&nbsp;</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">';
123下一页阅读全文

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章