欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

我的论坛源代码(四)

程序员文章站 2022-03-14 10:02:31
post.php发布主题的页面,发布的信息提交到okey.php中去处理。 论坛发帖</...</div> <div class="content"> post.php发布主题的页面,发布的信息提交到okey.php中去处理。 <br><br><html> <br><head> <br><title>论坛发帖</title> <br><meta http-equiv="content-type" content="text/html; charset=gb2312"> <br><style type=text/css> <br>p {font-family: normal; font-size: 9pt; line-height: 14pt} <br>div {font-family: normal; font-size: 9pt; line-height: 14pt} <br></style> <br><? <br>include "linkfox.inc.php"; <br>include "info.inc.php"; <br>?> <br><link href="js/cpcw.css" rel=stylesheet /link> <br></head> <br><br><body bgcolor="#ffffff"> <br><? <br>$tem=$http_cookie_vars[flyfoxnet];          //取cookie信息 <br>$temp=explode("|",$tem); <br>$cookiem=$temp[0]; <br>$useinfo=cuser($cookiem,$action); <br>if ($useinfo[2]=="游客") $usename=1; <br>?> <br><table width="100%" cellpadding="4" cellspacing="0" border="0"> <br>  <tr> <br>    <td height="40" rowspan="2" width="60%"> <br>      <div align="right"></div> <br>      <div align="right"></div> <br>    </td> <br>    <td height="20" width="10%"> </td> <br>    <td height="20" width="10%"> </td> <br>    <td height="20" width="10%"> </td> <br>    <td height="20" width="10%"> </td> <br>  </tr> <br>  <tr> <br>    <td height="20" width="10%"> <br>     <div align="center"><a href="reguse.php?action=xy"><img src="images/top_register.gif" width="74" height="21" border="0"></a></div> <br>    </td> <br>    <td height="20" width="10%"> <br>      <div align="center"><a href="useinfo.php?action=find"><img src="images/top_members.gif" width="74" height="21" border="0"></a></div> <br>    </td> <br>    <td height="20" width="10%"><a href="useinfo.php?action=edit"><img src="images/top_profile.gif" width="74" height="21" border="0"></a></td> <br>    <td height="20" width="10%"><a href="okey.php?d=q"><img src="images/top_logout.gif" width="74" height="21" border="0"></a></td> <br>  </tr> <br>  <tr> <br>    <td height="20"> <br>      <div align="left">当前位置:<font color="#0000ff">狐网─>狐网论坛─>发布论题</font>  <? echo "<font color='00dd00'>".$useinfo[2]."</font>"; ?></div> <br>    </td> <br>    <td height="20"> <br>      <div align="center"><a href="foxbbs.php"><img src="images/index.gif" width="70" height="20" border="0" align="middle"></a></div> <br>    </td> <br>    <td height="20" width="10%"> <br>      <div align="center"><a href="superuse.php"><img src="images/super.gif" width="70" height="20" border="0" align="middle"></a></div> <br>    </td> <br>    <td height="20" width="10%"> <br>      <div align="center"><a href="reguse.php?action=xy"><img src="images/dl.gif" width="70" height="20" border="0" align="middle"></a></div> <br>    </td> <br>    <td height="20" width="10%"> <br>      <div align="center"><a href="../index.php"><img src="images/fox.gif" width="70" height="20" border="0" align="middle"></a></div> <br>    </td> <br>  </tr> <br></table> <br><script language="javascript">            //这段js用来检查表单内信息状态,是不是有点眼熟?呵呵……oso上cut下来的了。 <br><!-- <br> var submitcount=0; <br><br> function checksubmit() { <br>    if (submitcount == 0) { <br>      submitcount++; <br>      return true; <br>    } else { <br>            if (submitcount>0){ <br>            alert("帖子已成功提交了,别急,等等!"); <br>            return false; <br>      } <br>    } <br> } <br><br>function check_com(){ <br>   if(document.form.title.value.length ==0){ <br>      submitcount--; <br>      alert("主题不能为空!快填上吧!"); <br>      return false; <br>   } <br><br>   if(document.form.message.value.length == 0){ <br>      submitcount--; <br>      alert("oh!sorry!加贴内容不能为空!"); <br>      return false; <br>   } <br>   return true; <br>} <br>//--> <br></script> <br><table width="100%" border="0" cellspacing="0" cellpadding="0"> <br>  <tr bgcolor="#009999"> <br>    <td height="20"><div align='center'><font color="ffffff"> <br>    <?            //在前面检查是否用户时给$useinfo[0]赋了用户信息。 <br>      if ($useinfo[0]) echo "<font color='00ff00'>[".$useinfo[2]."]</font> 你好!请在下面填写你的贴子。"; <br>      else echo "<font color='00ff00'>".$useinfo[2]."</font>你好,请先登录,再发帖,如果你还未注册,请先注册吧!"; <br>      ?></font></div> <br>      </td> <br>  </tr> <br>  <tr> <br>    <td height="20">  </td> <br>  </tr> <br>  <tr> <br>    <td height="20" class="bott"> <br>      <table width="65%" border="0" cellspacing="0" cellpadding="0" align="center"> <br>        <tr> <br>          <td height="100"> <br>            <div align="left"> <br>              <form name="form" method="post" onsubmit="return check_com()" action='okey.php'> <br>                              <? if ($usename==1)       //前面检查时如果没找到信息,则给$usename赋值为1,这里,用来判断是否需要用户身份校验。 <br>                       { <br>                  echo "用户名:<input style='background-color: #ffffff; border-bottom: #000000 1px dashed; border-left: #000000 1px dashed; border-right: #000000 1px dashed; border-top: #000000 1px dashed; type='text' name='username' maxlength='8' size='20'>    如果你还未注册,就来<a href='reguse.php?action=xy'>这里注册</a><br>"; <br>                  echo "密 码:<input style='background-color: #ffffff; border-bottom: #000000 1px dashed; border-left: #000000 1px dashed; border-right: #000000 1px dashed; border-top: #000000 1px dashed; type='password' name='userpass' size='20' maxlength='8'>    忘了密码来这里<a href='useinfo.php?c=pass'>取回密码</a>!<p>"; <br>                       } <br>                  ?> <br>                <div align="center">主 题:<input style="background-color: #ffffff; border-bottom: #000000 1px dashed; border-left: #000000 1px dashed; border-right: #000000 1px dashed; border-top: #000000 1px dashed;" type="text" name="title" size="40" maxlength="20"></div><br> <br>                <div align="center">帖子内容<br> <br>                  <textarea style="background-color: #ffffff; border-bottom: #000000 1px dashed; border-left: #000000 1px dashed; border-right: #000000 1px dashed; border-top: #000000 1px dashed;" name="message" wrap="virtual" cols="75" rows="10"></textarea> <br>                  <input type="submit" class="bott" name="submit" value="好了!提交" onclick="return checksubmit()">             <input type="reset" class="bott" name="submit2" value="擦了!重写"> <br>                </div> <br>              </form> <br>            </div> <br>          </td> <br>        </tr> <br>      </table> <br>    </td> <br>  </tr> <br>  <tr bgcolor="#009999"> <br>    <td height="20"> </td> <br>  </tr> <br></table> <br></body> <br></html>  </div> <div class="info-pre-next"> <p> 上一篇: <a href="/article/177265.html"> RabbitMQ在Ubuntu上的环境搭建 </a> </p> <p> 下一篇: <a href="/article/177267.html"> PSR - PHP标准推荐 </a> </p> </div> <div class="wz_tuijian"> <p> 推荐阅读 </p> <ul> <li> <a href="/article/2056059.html" target="_blank" title="我的老四"> <h2> 我的老四 </h2> </a> </li> <li> <a href="/article/2038470.html" target="_blank" title="山东费县名人录——天知地知、你知我知的明朝首辅张四知"> <h2> 山东费县名人录——天知地知、你知我知的明朝首辅张四知 </h2> </a> </li> <li> <a href="/article/2005617.html" target="_blank" title="详述四年的时间里,我是怎样慢慢加深对网赚的理解"> <h2> 详述四年的时间里,我是怎样慢慢加深对网赚的理解 </h2> </a> </li> <li> <a href="/article/1968979.html" target="_blank" title="wp7天气预报源代码(四UI的制作)视觉状态"> <h2> wp7天气预报源代码(四UI的制作)视觉状态 </h2> </a> </li> <li> <a href="/article/1962077.html" target="_blank" title="微软将开放《我的世界》的AI开发平台源代码"> <h2> 微软将开放《我的世界》的AI开发平台源代码 </h2> </a> </li> <li> <a href="/article/1956722.html" target="_blank" title="我是如何通过论坛推广产品的?"> <h2> 我是如何通过论坛推广产品的? </h2> </a> </li> <li> <a href="/article/1943337.html" target="_blank" title="核桃圈论坛,我最喜欢的网站之一"> <h2> 核桃圈论坛,我最喜欢的网站之一 </h2> </a> </li> <li> <a href="/article/1940225.html" target="_blank" title="费时半年鏖战阿里,字节跳动,终于四面阿里成功拿下我的offer上岸,奉上我的复习秘籍"> <h2> 费时半年鏖战阿里,字节跳动,终于四面阿里成功拿下我的offer上岸,奉上我的复习秘籍 </h2> </a> </li> <li> <a href="/article/1901050.html" target="_blank" title="我为什么每天定时的去各大论坛签到?论坛签名有什么好处?"> <h2> 我为什么每天定时的去各大论坛签到?论坛签名有什么好处? </h2> </a> </li> <li> <a href="/article/1860529.html" target="_blank" title="浅谈我利用过的四个网络赚钱方式"> <h2> 浅谈我利用过的四个网络赚钱方式 </h2> </a> </li> </ul> </div> </article> </div> </main> <footer><div class="box"><div class="ft_nav"><div class="ft_about"><p>关于网站</p><ul><li><a href="/sitemap.xml" target="_blank" title="网站地图">网站地图</a></li><li><a href="/list/2/" title="最新程序员文章站">最新程序员文章站</a></li></ul></div><div class="ft_contact"><ul><li>本站所有数据收集于网络如有侵犯到您的权益,请联系我们进行下架处理。</li><li class="email_show"></li></ul></div></div><div class="copyright"><div class="cr_left"><p> 备案号:<a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">粤ICP备20058927号</a></p><p>© Copyright © 2020-2022 www.superweb999.com 程序员文章站. </p></div></div></div></footer> </body> </html>