源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

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

  • 时间:2021-05-06 17:40 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:一个模仿oso的php论坛程序源码(之二)第1/3页
[b]程序二:addforum.php[/b]  <html>  <head>  <link rel="STYLESHEET" type="text/css" href="fp_zhangcg.css">  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">  <meta name="Microsoft Theme" content="none">  <meta name="Microsoft Border" content="none">  <title>发表信息</title>  </head>  <body bgcolor="#C0C0C0" background="backcolor.gif">  <SCRIPT language=JavaScript>  <!--    var submitcount=0;    function checkSubmit() {      if (submitcount == 0)       {         submitcount++;            return true;      }       else {         if (submitcount>0){               alert("帖子已成功提交,请勿重复发帖!nDon't submit the form twice, please.");            return false;         }      }    }    function check_com(){       if (document.form.username.value.length == 0){           submitcount--;           alert("请输入您的网上大名!nPlease input your user name.");           return false;       }       if (document.form.forumtitle.value.length ==0){           submitcount--;           alert("主题不能为空!nYou must supply a subject.");           return false;       }       if (document.form.forumcontent.value.length == 0){          submitcount--;          alert("加贴内容不能为空!nYou must supply a message.");          return false;        }         return true;  }  //-->  </SCRIPT>  <?    include ("c:mydbheader.inc");  ?>  <?  if (empty($theme_id))  {     $theme_id = 0;    }  ?>  <table width="750" border="0">    <tr>    <?      if ($theme_id == 0 ) {        print ' <td class="text">当前位置:主页——论坛——发表论坛</td>';      }       else      {        print ' <td class="text">当前位置:主页——论坛——回复帖子</td>';      }    ?>      <td> </td>    </tr>  </table>  <?  print '<form action="readforum.php?readflag=0 " ';  print ' method=post name=form   onsubmit="return check_com()">';  ?>    <table width="750" border="0">      <tr>         <td width="131" class="text">           <div align="right"><span class="text"><span class="text">您的大</span>名:</span></div>        </td>        <td width="609">           <input type="text" name="username" size="80" value="" maxlength="12">          <font color="#ff0000">*</font> </td>      </tr>      <tr>         <td width="131" class="text">           <div align="right">E_mail:</div>        </td>        <td width="609">           <input type="text" name="useremail" size="80">        </td>      </tr>      <tr>         <td width="131" class="text">           <div align="right">你的主页:</div>        </td>        <td width="609">           <p>             <input type="text" name="userhttp" size="80" value="http://">          </p>        </td>      </tr>      <tr>         <td width="131" class="text">         <?          if ($theme_id == 0 ) {             print ' <div align="right">加帖标题:</div>';             print ' </td> <td width="609"> ';
当前1/3页 [b]1[/b][url=http://www.1sucai.cn/article/8162_2.htm]2[/url][url=http://www.1sucai.cn/article/8162_3.htm]3[/url][url=http://www.1sucai.cn/article/8162_2.htm]下一页[/url][url=http://www.1sucai.cn/article/8162_all.htm]阅读全文[/url]
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部