首页 > 开发 > PHP > 正文

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

2024-05-04 22:13:41
字体:
来源:转载
供稿:网友
程序二:addforum.php 
<html> 
<head> 
<link rel="STYLESHEET" type="text/css" href="fp_zhangcg.css"> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<meta name="Microsoft Theme" content="none"> 
<meta name="Microsoft Border" content="none"> 
<title>发表信息</title> 
</head> 
<body bgcolor="#C0C0C0" background="backcolor.gif"> 
<SCRIPT language=JavaScript> 
<!-- 
  var submitcount=0; 
  function checkSubmit() { 
    if (submitcount == 0)  
    { 
       submitcount++;    
       return true; 
    }  
    else { 
       if (submitcount>0){   
           alert("帖子已成功提交,请勿重复发帖!nDon't submit the form twice, please.");            return false; 
       } 
    } 
  } 
  function check_com(){ 
     if (document.form.username.value.length == 0){ 
         submitcount--; 
         alert("请输入您的网上大名!nPlease input your user name."); 
         return false; 
     } 
     if (document.form.forumtitle.value.length ==0){ 
         submitcount--; 
         alert("主题不能为空!nYou must supply a subject."); 
         return false; 
     } 
     if (document.form.forumcontent.value.length == 0){ 
        submitcount--; 
        alert("加贴内容不能为空!nYou must supply a message."); 
        return false;  
     }   
     return true; 
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表