www.webdeveloper.com
Results 1 to 2 of 2

Thread: Blank fields from a form

  1. #1
    Join Date
    Jun 2005
    Posts
    201

    Blank fields from a form

    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

  2. #2
    Join Date
    May 2007
    Posts
    35

    Smile

    You could use:

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles