Home  >  Article  >  Backend Development  >  一个模仿oso的php论坛程序源码(之二)第1/3页_php实例

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

WBOY
WBOYOriginal
2016-06-07 17:26:53762browse
程序二:addforum.php 
 
 
 
 
 
 
发表信息 
 
 
<script> <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></script> 
 
  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 ' 
 ';
当前1/3页 123下一页
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn