Form Handling with ASP

Results 1 to 2 of 2

Thread: Form Handling with ASP

  1. #1
    Join Date
    Dec 1969

    Default Form Handling with ASP

    Hello,<BR><BR>I have currently used the mailform example from this page to setup a mailer for my form. My question is what is the best way to exclude fields from a form when their value is blank. Using the example from this page it puts a "-" when the field is left blank, i want to exclude the field all together, mainly to get the fields that were filled out and save paper when i print them.<BR><BR>Thanks,<BR>JT

  2. #2
    Join Date
    Dec 1969

    Default I do this

    if len(trim(request.form(fieldnamehere))) then<BR>&#039;yada yada<BR>end if<BR><BR>0 evaluates to false in vbscript, so if there is a length greater than 0, it will execute the code in the if statement.

Posting Permissions

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