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

时间:2024-05-02 17:07:10 

程序二:addforum.php 
<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>&nbsp;</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"> ';
                           

123下一页阅读全文

标签:一个模仿oso的php论坛程序源码(之二)
0
投稿

猜你喜欢

  • Python函数参数定义及传递方式解析

    2021-10-19 21:28:25
  • Firefox与IE下UL预设标记的异同

    2007-05-11 17:03:00
  • python序列类型种类详解

    2022-02-27 13:53:38
  • 神经网络python源码分享

    2021-10-07 10:41:00
  • display:inline问题小结

    2008-05-01 13:08:00
  • Python实现简单的HttpServer服务器示例

    2021-02-07 21:29:35
  • sqlserver中Case的使用方法(上下篇)第1/2页

    2024-01-19 06:29:18
  • 深入理解vue中的slot与slot-scope

    2024-05-05 09:07:18
  • python机器学习包mlxtend的安装和配置详解

    2021-11-09 22:53:06
  • 简单实例解释Oracle分页查询

    2023-07-16 00:54:03
  • SQL Server比较常见数据类型详解

    2024-01-26 11:28:48
  • Mac下Supervisor进程监控管理工具的安装与配置

    2023-06-12 14:33:12
  • 基于jQuery.validate及Bootstrap的tooltip开发气泡样式的表单校验组件思路详解

    2024-04-16 10:27:29
  • 一个轻量级的XHTML右键菜单[支持IE和firefox]

    2024-04-19 10:58:32
  • 发一段鼠标掠过表格行颜色改变的代码

    2010-07-02 12:59:00
  • 浮动元素对浏览器的支持

    2008-02-02 10:05:00
  • 在Python中字典根据多项规则排序的方法

    2023-09-12 00:51:38
  • Python实现视频目标检测与轨迹跟踪流程详解

    2021-12-27 06:48:37
  • js实现一个日期联动下拉菜单

    2007-08-04 20:49:00
  • python 动态生成变量名以及动态获取变量的变量名方法

    2021-05-18 10:28:20
  • asp之家 网络编程 m.aspxhome.com