asp ?

Out of context: Reply #9

  • Started
  • Last post
  • 11 Responses
  • iodine740

    The If conditional doesnt' make sense.

    Response.Write doesn't evaluate to TRUE or FALSE. If you just take out the Response.Write it should work. Now I'm not sure if it'll work the way you want it to, but it will work.

    The way I read what you are doing is that if the the form field "Program" is an object then output the Paragraph and Form. Which I can see making sense... the only thing I'm not sure of is your use of isObject. The only reason I say that is because, in my 5 years of ASP, I've always seen the Form value either checked for an empty string or against NULL, to see if it has a value (or is there). The only time I can ever think of seeing an Object coming from a Form post would be if it was a file upload, in which case I've always seen an intermediary object being used (like ASPSoft's upload objects or SA Fileup) instead of the Request object.

View thread