countrygirl35
Programmer
I'm relatively new to javascript and I have used asp for about a year. I'm trying to convert the asp script below to javascript so I can check at validation to see if a record exists for the input string. My code is below in asp.
Then I have a form with a textbox that I retrieve the strzip value from...
Code:
<% checkforzip = "SELECT * FROM IVRADM.T_SALES_LKP_Sales_Region WHERE Zip_Code = '" & strzip & "' "
strspace = " "
Set cnLink3 = Server.CreateObject("ADODB.Connection")
cnLink3.Open "FILEDSN=D:\Inetpub\DSN\sale.dsn"
set rsLink3 = Server.CreateObject("ADODB.Recordset")
rsLink3.Open checkforzip, cnLink3, 3, 3
If rsLink3.EOF Then
response.redirect("zipnotcorrect.asp")
Else
rsLink3.Close
Set rsLink3 = Nothing
cnLink3.Close
set cnLink3 = Nothing
End If %>
Then I have a form with a textbox that I retrieve the strzip value from...