⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addvip.asp

📁 青岛分类信息网整合企业名录.供大家分享
💻 ASP
字号:
<!--#include file="head.asp"-->

<%
action=request.querystring("action")
if action="save" then
dim username,pass,addr,phone,qe,sql,rs
username=HtmlEncode(trim(request.form("username")))
pass=HtmlEncode(trim(request.form("pass")))
qe=HtmlEncode(trim(request.form("qe")))
phone=HtmlEncode(request.form("phone"))
addr=HtmlEncode(request.form("addr"))

sql="select * from vip"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
rs.addnew
rs("username")=username
rs("pass")=pass
rs("qe")=qe
rs("phone")=phone
rs("viptime")=date()
rs("addr")=addr
rs.update
rs.close  
set rs=nothing                                                                                     
conn.close   
set conn=nothing
response.Write "<script language=javascript>alert('您的信息提交成功,等待管理员审核!');location.href='index.asp';</script>"
end if

%>


<SCRIPT LANGUAGE="JavaScript">
<!--//
function checkadd()
{   
    if (document.postart.username.value.length<1)
	{
        alert("请您填写用户名!");
        document.postart.username.focus();
        return false;
    }

	if (document.postart.pass.value==""){
       alert ("请输入您密码!");
       document.postart.pass.focus();
       return(false);
    }

	if (document.postart.qe.value==""){
       alert ("请输入您的QQ或Email!");
       document.postart.qe.focus();
       return(false);
    }


}
//-->
</SCRIPT>


<!-- 这里是主题 -->
 <div align="center">
  <center>
  <form action="addvip.asp?action=save" method="post" name="postart" onsubmit="return checkadd()">
  <table border="0" width="100%" cellspacing="0" cellpadding="0"> 
    <tr>
      <td width="100%" colspan="3" height="10" valign="top">       
      </td>           
    </tr>           
    <tr>           
      <td width="35%" align="right" height="26">用户名:</td>           
      <td width="58%" height="26"><input type="text" name="username" size="20" maxlength="10">            
        <font color="#FF0000">* 6字以内</font></td>                                    
      <td width="7%" height="238" rowspan="10" valign="top">
      </td>                            
    </tr>                           
    <tr>                            
      <td width="35%" align="right" height="26">密码:</td>                            
      <td width="58%" height="26"><input type="password" name="pass">                                  
    </tr>                                   
                     
     <tr>                            
      <td width="35%" align="right" height="26">地址:</td>                            
      <td width="58%" height="26"><input type="text" name="addr">                                  
    </tr>  
     <tr>                            
      <td width="35%" align="right" height="26">电话:</td>                            
      <td width="58%" height="26"><input type="text" name="phone">                                  
    </tr> 
    </tr>  
     <tr>                            
      <td width="35%" align="right" height="26">QQ或Email:</td>                            
      <td width="58%" height="26"><input type="text" name="qe">                                  
    </tr> 

    <tr>                     
      <td width="35%" align="right" height="30">                           
      </td>                                                                     
      <td width="58%" align="right" height="30">                          
        <p align="left"><input type="submit" value="提交" name="submit">&nbsp;  
        <input type="reset" value="取消" name="reset">&nbsp; </td>                                     
    </tr>                                        
  </table>                           
  </form>                           
</div>                                               


<!-- 这里是主题结束 -->


<!--#include file="foot.asp"-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -