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

📄 yuming2.asp

📁 ASP的网上商城在线支付系统
💻 ASP
字号:
<!--#include file="conn.asp"--> 
<!--#include file="function.asp"-->
<!--#include file="indext.asp"-->
<% founderr=false 
if request.form("UserName")="" or len(request.form("UserName"))>50 then
    errmsg=errmsg+"<br>"+"<li>域名管理人(中文)未输入或长度超过了50个字节。"
	founderr=true
else
	UserName=trim(request.form("UserName"))
end if
if request.form("UserNamee")="" or len(request.form("UserNamee"))>50 then
	errmsg=errmsg+"<br>"+"<li>域名管理人(英文)未输入或长度超过了50个字节。"
	founderr=true
else
	UserNamee=trim(request.form("UserNamee"))
end if
if request.form("yuming1")=""  then
	errmsg=errmsg+"<br>"+"<li>请输入您要的域名"
	founderr=true
else
	yuming1=trim(request.form("yuming1"))
end if
if request.form("company")="" then
	errmsg=errmsg+"<br>"+"<li>注册人或公司全名(中文)未输入。"
	founderr=true
else
	company=trim(request.form("company"))
end if
if request.form("companye")="" then
	errmsg=errmsg+"<br>"+"<li>注册人或公司全名(英文)未输入。"
	founderr=true
else
	companye=trim(request.form("companye"))
end if
if request.form("address")="" then
	errmsg=errmsg+"<br>"+"<li>联系地址(中文)未输入。"
	founderr=true
else
	address=trim(request.form("address"))
end if
if request.form("addresse")="" then
	errmsg=errmsg+"<br>"+"<li>联系地址(英文)未输入。"
	founderr=true
else
	addresse=trim(request.form("addresse"))
end if
if request.form("zipcode")=""  or len(request.form("zipcode"))>10 then
	errmsg=errmsg+"<br>"+"<li>邮政编码未输入或长度超过了10个字节)。"
	founderr=true
else
	zipcode=trim(request.form("zipcode"))
end if
if IsValidEmail(trim(request.form("Email")))=false then
	errmsg=errmsg+"<br>"+"<li>您的Email有错误。"
	founderr=true
else
	Email=trim(request.form("Email"))
end if
if request.form("tel")=""  or len(request.form("tel"))>20 then
	errmsg=errmsg+"<br>"+"<li>电话号码未输入或长度超过了20个字节。"
	founderr=true
else
	tel=trim(request.form("tel"))
end if

if request.form("yesorno")=""then
	errmsg=errmsg+"<br>"+"<li>您未阅读理解并接受《国际顶级域名注册协议》。"
	founderr=true
else
	yesorno=trim(request.form("yesorno"))
end if

if founderr=true then
	call error()
else
yuming1=request.form("yuming1")
yuming2=request.form("yuming2")
company=request.form("company")
companye=request.form("companye")
makeup=request.form("makeup")
makeupe=request.form("makeupe")
country=request.form("country")
countrye=request.form("countrye")
site=request.form("site")
sitee=request.form("sitee")
city=request.form("city")
citye=request.form("citye")
address=request.form("address")
addresse=request.form("addresse")
zipcode=request.form("zipcode")
tel=request.form("tel")
fax=request.form("fax")
email=request.form("email")
username=request.form("username")
sibie=request.form("sibie")

	set rs=server.createobject("adodb.recordset")
	sql="select * from yuming where username='"&username&"'"
	rs.open sql,conn,1,3
	'if not rs.eof or username=WebName then
	'	errmsg="<br>"+"<li>对不起,您输入的用户名已经被注册,请重新输入。"
	'	founderr=true
	'else
		rs.addnew
		rs("username")=request("username")
		rs("usernamee")=request("usernamee")
		rs("yuming1")=request("yuming1")		
		rs("company")=request("company")
		rs("companye")=request("companye")
		rs("makeup")=request("makeup")
		rs("makeupe")=request("makeupe")
		rs("country")=request("country")
		rs("countrye")=request("countrye")
		rs("site")=request("site")
		rs("sitee")=request("sitee")
		rs("city")=request("city")
		rs("citye")=request("citye")
		rs("address")=request("address")
		rs("addresse")=request("addresse")		
		rs("zipcode")=request("zipcode")
		rs("tel")=request("tel")		
		rs("email")=request("email")
		rs("paytype")=request("paytype")
        rs("agentid")=request("agentid")
        rs("agentmail")=request("agentmail")		
		
		if request("agency")<>"" then rs("agency")=request("agency")
		if request("email")<>"" then rs("email")=request("email")		
		if request("fax")<>"" then rs("fax")=request("fax")
		if request("sibie")<>"" then rs("sibie")=request("sibie")
		if request("yuming2")<>"" then rs("yuming2")=request("yuming2")		
		if request("UserWebName")<>"" and request("UserWebUrl")<>"" then
			rs("UserWebName")=request("UserWebName")
			rs("UserWebUrl")=request("UserWebUrl")
		end if
		
				
		Rs("addDate")=NOW()
		rs("logins")=0
		Rs("lastlogin")=NOW()
		rs.update
	'end if
	rs.close

	if founderr=true then
		call error()
	else
%>

<script ID="clientEventHandlersJS" LANGUAGE="javascript">
<!--
function ttt(form) 
{
  
  str="请输入!"
    
    if (form1.domainname.value=="")
       {
       form1.domainname.focus()
       alert(str)      
       return false}
  if (!checkString(form1.elements["domainname"])) 

 { alert("对不起,域名只能英文26个字母和10个阿拉伯数字以及横杠“-”(减号)组成,请重新输入,谢谢!")
   return false
}
}
 function checkString(form)
{ 
  var ss=form.value;
  var spa="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-"
   var i=0;
   var sLength=ss.length;
  kk=ss.length
 while ((i<ss.length ))
{ 
   var c=ss.charAt(i);
   if (ss.charAt(0)=="-") return false;
   
   if (spa.indexOf(c)==-1) return false;
   i++;
    
}
   
  return true;
   }
//-->
</script>


<table align="center" width="770" border="0" cellspacing="0" cellpadding="0" >
  <tr> 
    <td bgcolor="#000000" width="1"></td>
    <td bgcolor="#FFFFFF"> 
      <!--#include file="indexl-.asp"-->
    </td>


    <td width="3" background="image/3pic.gif" valign="top"><img src="image/3pic.gif" width="3" ></td>
    <td width="593" valign="top"> 
      <table width="593" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="5"> 
                </td>
              </tr>
         <tr> 
           <td valign="top"> 


                  <table width="95%" border="0" cellspacing="1" cellpadding="2" align="center">
                    <tr> 
                      <td align=right colspan="2"> 
                        <div align="center"> 
                          <table width="100%" border="0" cellspacing="3" cellpadding="3">
                            <tr> 
                              <td> 
                                <div align="left"></div>
                                <div align="center"><font color="#FF6600"><b>:::::: 
                                  感谢您的申请,以下是您提交的信息 ::::::</b></font> </div>
                              </td>
                            </tr>
                          </table>
                        </div>
                      </td>
                    </tr>
                    <tr> 
                      <td  align=right width="33%">代理商ID:</td>
                      <td width="67%"><%=request("agentid")%></td>
                    </tr>
                    <tr> 
                      <td  align=right width="33%">代理商MAIL:</td>
                      <td width="67%"><%=request("agentmail")%></td>
                    </tr>
                    <tr> 
                      <td align=right width=33%>申请的域名一:</td>
                      <td width="67%"><%=yuming1%> </td>
                    </tr>
                    <tr> 
                      <td align=right width="33%">申请的域名二:</td>
                      <td width="67%"><%=yuming2%> </td>
                    </tr>
                    <tr> 
                      <td  align=right width="33%">注册人或公司全名(中文):</td>
                      <td width="67%"><%=company%></td>
                    </tr>
                    <tr> 
                      <td  align=right width="33%">注册人或公司全名(英文):</td>
                      <td width="67%"><%=companye%></td>
                    </tr>
                    <tr> 
                      <td  align=right width="33%">申请年限:</td>
                      <td width="67%"><%=makeup%></td>
                    </tr>
                    <tr> 
                      <td  align=right width="33%">联系地址(中文):</td>
                      <td width="67%"><%=address%></td>
                    </tr>
                    <tr> 
                      <td  align=right width="33%">联系地址(英文):</td>
                      <td width="67%"><%=addresse%></td>
                    </tr>
                    <tr> 
                      <td  align=right width="33%">邮政编码:</td>
                      <td width="67%"><%=zipcode%></td>
                    </tr>
                    <tr> 
                      <td  align=right width="33%">联系电话:</td>
                      <td width="67%"><%=tel%></td>
                    </tr>
                    <tr> 
                      <td  align=right width="33%">电子邮件:</td>
                      <td width="67%"><%=email%></td>
                    </tr>
                    <tr> 
                      <td align=right width="33%">传真/手机:</td>
                      <td width="67%"> 
                        <%if request.form("fax")="" then%>
                        没有 
                        <%else%>
                        <%=request.form("fax")%> 
                        <%end if%>
                      </td>
                    </tr>
                    <tr> 
                      <td  align=right width="33%">域名管理人(中文):</td>
                      <td width="67%"><%=username%></td>
                    </tr>
                    <tr> 
                      <td  align=right width="33%">域名管理人(英文):</td>
                      <td width="67%"><%=usernamee%></td>
                    </tr>
                    <tr> 
                      <td align=right width="33%">代理商编号:</td>
                      <td width="67%"><%=request("agentid")%> </td>
                    </tr>
                    <tr> 
                      <td align=right width="33%">代理商邮箱:</td>
                      <td width="67%"><%=request("agentmail")%> </td>
                    </tr>
                    <tr> 
                      <td  align=right width="33%">付款方式:</td>
                      <td width="67%"> 
                        <%if paytype=1 then%>
                        银行汇款 
                        <%else%>
                        邮局汇款 
                        <%end if%>
                      </td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="1" cellpadding="2">
                    <tr bgcolor="#E9F0FC"> 
                      <td width="49%"><b><font color="#cc0000">::您提交了域名购买表单,请选择购买空间:</font></b></td>
                      <td width="25%"> 
                        
                          <input onclick="location.href='pro8.asp'" type="reset"  value="选择Asp空间">
                  
                      </td>
                      <td width="26%"> 
                       
                          <input onclick="location.href='pro2.asp'"  type="reset"  value="选择Php空间">
                        
                      </td>
                    </tr>
                    <tr bgcolor="#E9F0FC"> 
                      <td width="49%"><font color="#cc0000"><b>::您提交了域名购买表单,是否在线支付?</b></font></td>
                      <td width="51%" colspan="2">                         
                         
						  <input  onclick="location.href='#'" type="reset" value="::我要在线支付::" >
                         
					  </td>
                    </tr>
                    <tr bgcolor="#E9F0FC"> 
                      <td width="49%"><font color="#cc0000"><b>::您提交了域名购买表单,其他汇款方式:</b></font></td>
                      <td width="51%" colspan="2"> 
                        
                          <input  onclick="location.href='pay2.asp'" type="reset" value="::查看付款方式::">
                       
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>


                                    <tr> 
                                        <td colspan="2">&nbsp;</td>
                                      </tr>
</table>	


	       </td>
        </tr>
      </table>
    </td>
    <td bgcolor="#000000" width="1"></td>
  </tr>

</table>
<%
	end if
	set rs=nothing
end if
conn.close
set conn=nothing
%>
<!--#include file="indexd.asp"-->

⌨️ 快捷键说明

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