I want to make sure that the querystring value is numeric, and that it isn't empty otherwise do a redirect
The code below works
iOptionID = Request.QueryString("ID")
If Len(iOptionID)<1 OR IsNumeric(iOptionID)=False Then
Response.redirect "admin_options.asp"
End If
How could I make sure that iOptionID is greater than 0?
iOptionID = Request.QueryString("ID")
If Len(iOptionID)<1 OR IsNumeric(iOptionID)=False OR iOption<1 Then
Response.redirect "admin_options.asp"
End If
I tried the code above and it doesn't work when the id=
I get the error
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: ""]'
any ideas?
The code below works
iOptionID = Request.QueryString("ID")
If Len(iOptionID)<1 OR IsNumeric(iOptionID)=False Then
Response.redirect "admin_options.asp"
End If
How could I make sure that iOptionID is greater than 0?
iOptionID = Request.QueryString("ID")
If Len(iOptionID)<1 OR IsNumeric(iOptionID)=False OR iOption<1 Then
Response.redirect "admin_options.asp"
End If
I tried the code above and it doesn't work when the id=
I get the error
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: ""]'
any ideas?