I am trying to check and see if a user is submitting a form with any blank fields.
I've tried the following:
1. If Isnull(Request.Form(field_name)) then
Response.Redirect(URL_BlankField)
End If
2. If Request.Form(field_name) = "" then
Response.Redirect(URL_BlankField)
End If
3. If CStr(Request.Form(field_name)) = "" then
Response.Redirect(URL_BlankField)
End If
With all three I get an internal server error when the form submits. I'm using a form that POSTs to itself and executes the above code upon submission.
Am I just making a simple syntax error, or is something else wrong here?
I've tried the following:
1. If Isnull(Request.Form(field_name)) then
Response.Redirect(URL_BlankField)
End If
2. If Request.Form(field_name) = "" then
Response.Redirect(URL_BlankField)
End If
3. If CStr(Request.Form(field_name)) = "" then
Response.Redirect(URL_BlankField)
End If
With all three I get an internal server error when the form submits. I'm using a form that POSTs to itself and executes the above code upon submission.
Am I just making a simple syntax error, or is something else wrong here?