Vi metto i tratti di codice va...
codice:
Dim iError(7)
Const ERROR_UNKNOW = 0
Const ERROR_NULLFIELD = 1
Const ERROR_BADUSERNAME = 2
Const ERROR_TAKEDUSERNAME = 3
Const ERROR_BADPWD = 4
Const ERROR_WRONGPWD = 5
Const ERROR_BADEMAIL = 6
' Così funziona bene
iError(ERROR_NULLFIELD) = True
Rensponse.Write iError(ERROR_NULLFIELD)
'Mentre qui ad esempio mi da errore
Function CheckField
CheckField = True
If Form("name") = "" OR Form("surname") = "" Then
CheckField = False
iError(ERROR_NULLFIELD) = True
End If
End Function