Some of my forum members are complaining of the following error:
Microsoft VBScript runtime error '800a000d'Type mismatch: 'CInt' /forum/new_post.asp, line 358 |
One of the members was using Google Chrome and another was using Safari, which are pritty much the same thing.
The error seems to relates to this block of code:
If Request.Form("PN") = "" Then
intReturnPageNum = 1
Else
intReturnPageNum = CInt(Request.Form("PN"))
End If |
Would it not be better to do the following, since you want to make sure its a number?
If NOT isNumeric(Request.Form("PN")) Then
intReturnPageNum = 1
Else
intReturnPageNum = CInt(Request.Form("PN"))
End If |