📄 addqy.asp
字号:
<!--#include file="head.asp"-->
<!-- 这里是主题 -->
<%
dname=trim(request.form("dname"))
dusername=trim(request.form("username"))
dpassword=trim(request.form("password"))
dyewu=trim(request.form("dyewu"))
dlei=split(trim(request.form("dlei")),"@")
dfaren=trim(request.form("dfaren"))
dcity=trim(request.form("dcity"))
dhttp=trim(request.form("dhttp"))
dmail=trim(request.form("dmail"))
daddress=trim(request.form("daddress"))
dyoubian=trim(request.form("dyoubian"))
dtel=trim(request.form("dtel"))
dfax=trim(request.form("dfax"))
djieshao=trim(request.form("djieshao"))
if dname<>"" then
sql="select * from qydata where username='"&HtmlEncode(dusername)&"'"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,3,2
if recordcount<>0 then
response.write "<script>alert('此用户名已经存在,请重新选择!');history.back();</script>"
else
rs.addnew
rs("name")=HtmlEncode(dname)
rs("username")=HtmlEncode(dusername)
rs("password")=HtmlEncode(dpassword)
rs("yewu")=HtmlEncode(dyewu)
rs("leiid")=HtmlEncode(dlei(0))
rs("lei")=HtmlEncode(dlei(1))
rs("faren")=HtmlEncode(dfaren)
rs("city")=HtmlEncode(dcity)
rs("http")=HtmlEncode(dhttp)
rs("mail")=HtmlEncode(dmail)
rs("address")=HtmlEncode(daddress)
rs("youbian")=HtmlEncode(dyoubian)
rs("tel")=HtmlEncode(dtel)
rs("fax")=HtmlEncode(dfax)
rs("jieshao")=HtmlEncode(djieshao)
rs("mark")=qymark
rs.update
rs.close
response.Write "<script language=javascript>alert('您的信息提交成功!');location.href='qiye.asp';</script>"
end if
end if
%>
<html>
<head>
<style type="text/css">
<!--
td { font-size: 12px; line-height: 17px }
body { font-size: 12px; line-height: 17px }
p { margin-top: 1; margin-bottom: 1 }
a:link { text-decoration: none; color: black }
a:visited { text-decoration: none; color: black }
a:active { text-decoration: none }
a:hover { text-decoration: underline; color: red }
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>企业申请 - 牡丹江市信息互联网</title>
<SCRIPT LANGUAGE="JavaScript">
<!--//
function checkadd()
{
if (document.postart.dname.value.length<1)
{
alert("单位名称不能为空!");
document.postart.dname.focus();
return false;
}
if (document.postart.username.value.length<1)
{
alert("用户名不能为空!");
document.postart.username.focus();
return false;
}
if (document.postart.password.value.length<1)
{
alert("登录密码不能为空!");
document.postart.password.focus();
return false;
}
if (document.postart.dcity.value=="选择区域")
{
alert("请选择所在区域!");
document.postart.dcity.focus();
return false;
}
if (document.postart.dlei.value=="选择行业类别")
{
alert("请选择行业类别!");
document.postart.dlei.focus();
return false;
}
}
//-->
</SCRIPT>
<div align="center">
<center>
<form action="" method="post" name="postart" onsubmit="return checkadd()">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="25%" align="right" height="26">单位名称:</td>
<td width="76%" height="26"><input type="text" name="dname" size="30"> <font color="#FF0000">*</font></td>
</tr>
<tr>
<td width="25%" align="right" height="26">用 户 名:</td>
<td width="76%" height="26"><input type="text" name="username" size="30"> <font color="#FF0000">*</font></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -