asp禁止提交重复内容
set rs1=server.createobject("adodb.recordset")
sql1="select * from abc where name='"&request("name")&"'"
rs1.open sql1,conn,1,3
if not rs1.bof and not rs1.eof then
response.write "<script>alert('当前日期已经存在信息 请核对修改后再次提交');history.back();</script>"
Response.end
end if
同样的日期里 不能重复提交 同样的name (比如 内容是123 日期是2019/1/14 那么14日就不能再次添加123 其他日期还是能添加123)请问该如何写呢?