Se algum campo estiver vazio, redirecione para cadastro.asp
senão redirecione para login.asp
Onde errei?
O que mudar?
<%@ language="vbscript" %>
<%
nome = Request.form("nome")
nascimento = Request.form("nascimento")
cpf = Request.form("cpf")
email = Request.form("email")
ddd = Request.form("ddd")
tel = Request.form("tel")
cidade = Request.form("cidade")
estado = Request.form("estado")
login = Request.form("login")
senha = Request.form("senha")
ip = Request.ServerVariables("REMOTE_ADDR")
'On error resume next
set boletimDB = server.CreateObject("ADODB.Connection")
boletimDB.open "boletim"
theSQL = "insert into cadastro"
theSQL = theSQL & "(nome, nascimento, cpf, email, ddd, tel, cidade,
estado, login, senha, data, ip) "
theSQL = theSQL & " values ('"&nome&"','"&nascimento&"','"&cpf&"','"&email&"','"&ddd&"','"&tel&"','"&cidade&"',
'"&estado&"','"&login&"','"&senha&"','" & NOW & "','" &ip& "')"
boletimDB.Execute(theSQL)
boletimDB.close
set boletimDB = Nothing
if Err.number = 0 then
response.redirect"cadastro.asp"
else
response.redirect "login.asp"
end if
%>