asp提交跳转及重复记录提醒及几秒后跳转

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- #include file="conn.asp" -->
<!-- #include file="top.asp" -->
<head>
<meta charset="utf-8">
    <title>88888</title>
    <meta name="Keywords" content="999">
    <meta name="Description" content="6666">
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <link rel="stylesheet" type="text/css" href="../css/style.css" media="all">
    <link rel="dns-prefetch" href="https://api.mch.weixin.qq.com/pay/unifiedorder">
    <meta http-equiv="refresh" content="3; url=add.asp">
</head>

<body>
<div class="wxs">
    <div class="title">添加客户号码</div>
    <% 
    
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from [ad] where [shouji]='"&trim(request.form("shouji"))&"'" ,conn,1,1
if rs.recordcount>0 then
response.write "<script language=javascript>"
response.write "alert('对不起,此号码重复!');"
response.write "this.location.href='add.asp';</script>"
Response.end

else

    pihao = trim(request("pihao"))
    shouji = trim(request("shouji"))
    weixin = trim(request("weixin"))
    sql="select pihao,shijian,shouji,weixin from ad where id = null"
    set Rs = server.createobject("adodb.recordset")
    Rs.Open sql,conn,1,3
    Rs.addnew
    Rs("pihao") = pihao
    Rs("shouji") = shouji
    Rs("weixin") = weixin
    Rs.update
    Rs.close
    set Rs = nothing
    end if

     %>
<div class="footer">添加成功!3秒后返回</div>

</div>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值