程序二:addforum.php 发表信息 <br><!-- <BR> var submitcount=0; <BR> function checkSubmit() { <BR> if (submitcount == 0) <BR> { <BR> submitcount++; <BR> return true; <BR> } <BR> else { <BR> if (submitcount>0){ <br> alert("帖子已成功提交,请勿重复发帖!nDon't submit the form twice, please."); return false; <br> } <br> } <br> } <br> function check_com(){ <br> if (document.form.username.value.length == 0){ <br> submitcount--; <br> alert("请输入您的网上大名!nPlease input your user name."); <br> return false; <br> } <br> if (document.form.forumtitle.value.length ==0){ <br> submitcount--; <br> alert("主题不能为空!nYou must supply a subject."); <br> return false; <br> } <br> if (document.form.forumcontent.value.length == 0){ <br> submitcount--; <br> alert("加贴内容不能为空!nYou must supply a message."); <br> return false; <br> } <br> return true; <br>} <br>//--> <br> include ("c:mydbheader.inc"); ?> if (empty($theme_id)) { $theme_id = 0; } ?> if ($theme_id == 0 ) { print ' 当前位置:主页——论坛——发表论坛'; } else { print ' 当前位置:主页——论坛——回复帖子'; } ?> print 'print ' method=post name=form onsubmit="return check_com()">'; ?> 您的大名: * E_mail: 你的主页: if ($theme_id == 0 ) { print ' 加帖标题:'; print ' '; http://www.bkjia.com/PHPjc/318041.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/318041.htmlTechArticle程序二:addforum.php html head linkrel="STYLESHEET"type="text/css"href="fp_zhangcg.css" metahttp-equiv="Content-Type"content="text/html;charset=gb2312" metaname="MicrosoftTheme...