首页  >  文章  >  后端开发  >  一个模仿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