Click to See Complete Forum and Search --> : Blank fields from a form


bp_travis
08-09-2007, 02:45 PM
Hello. I have a variable that is set to request.form which returns all the fields and values in a submitted form (unless the checkbox is not checked). However, it also returns blank textbox fields that are not required but the user did not enter anything into them. Is there a way to filter the blank ones out of request.form? Thanks

nathanb
08-10-2007, 04:21 AM
You could use:

If Request.Form("fieldname") = "" Then ...