首頁  >  文章  >  後端開發  >  一个模仿oso的php论坛程序源码(之二)第1/3页_PHP教程

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

WBOY
WBOY原創
2016-07-21 15:56:42736瀏覽

程序二: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 ' 
 ';

www.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...
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn