%
dim emailexist, error, error_msg
'===================
'make sure the data all matches up
set tigRS = Server.CreateObject("ADODB.Recordset")
query = "SELECT emailaddy, checknum " & _
"FROM mailout " & _
"WHERE " & _
"emailaddy = '" & SQLsafe(Request.QueryString("e")) & "'" & _
"and " & _
"checknum = '" & SQLsafe(Request.QueryString("n")) & "'"
'Response.Write("Query = [" & query & "]
")
tigRS.Open query,DSN,1
if not tigRS.EOF then
emailexist = true
else
'they ain't in the DB :[
error = true
error_msg = error_msg & "
|
<% if error then Response.Write("There was an error processing your request.
Welcome to the ..::LvL mailout - you have successfully unlocked your subscription. Expect your first ..::LvL update mail soon. <% end if %> |
|