Maison > php教程 > php手册 > le corps du texte

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

WBOY
Libérer: 2016-06-13 12:32:56
original
728 Les gens l'ont consulté

程序二: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 ' 
 ';
Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Recommandations populaires
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!