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

WBOY
풀어 주다: 2016-07-21 15:56:42
원래의
735명이 탐색했습니다.

程序二: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...
관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!