Re: Checking for blank form fields 2nd idea

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18335
interpreted = N
texte = >>I'm creating (yet another) bulletin board type application with >>WebCatalog. >> >>I'm using a single page to do both NEW POSTS, and REPLIES. >> >>If it's a NEW POST, all of the fields are EMPTY, and the contents needs >>to be supplied by the user. >> >>If it's a REPLY, I'm trying to pass (as a HIDDEN field subject) the >>contents of the SUBJECT, and have that populate the SUBJECT field for me. >> >>The problem is that I can't seem to find any combination of [showif] or >>[hideif] conditionals that will this. >> >>Here's a few of my last attempts: >> >>Passing the value via a form with: >> >> >>The page it's calling has the following: >> [showif [subject]=] >> > >Try using [showif [subject]=] <---meaning equals nothing or [subject] has >no value (empty field) > >and on the other one > >[showif [subject]!] <--meaning does not equal nothing or [subject] has value And on second thought, if you are coming into this page for the first time and the [subject] has never been hit yet from a get or post look at the [raw][subject][/raw] value. On second thought that is where your problem might be=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== Associated Messages, from the most recent to the oldest:

    
  1. Re: Checking for blank form fields 2nd idea (Gary Richter 1998)
>>I'm creating (yet another) bulletin board type application with >>WebCatalog. >> >>I'm using a single page to do both NEW POSTS, and REPLIES. >> >>If it's a NEW POST, all of the fields are EMPTY, and the contents needs >>to be supplied by the user. >> >>If it's a REPLY, I'm trying to pass (as a HIDDEN field subject) the >>contents of the SUBJECT, and have that populate the SUBJECT field for me. >> >>The problem is that I can't seem to find any combination of [showif] or >>[hideif] conditionals that will this. >> >>Here's a few of my last attempts: >> >>Passing the value via a form with: >> >> >>The page it's calling has the following: >> [showif [subject]=] >> > >Try using [showif [subject]=] <---meaning equals nothing or [subject] has >no value (empty field) > >and on the other one > >[showif [subject]!] <--meaning does not equal nothing or [subject] has value And on second thought, if you are coming into this page for the first time and the [subject] has never been hit yet from a get or post look at the [raw][subject][/raw] value. On second thought that is where your problem might be=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== Gary Richter

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Banner DNA (1997) Validation (2000) docs for WebCatalog2 (1997) taxTotal, grandTotal (1997) Variable prices and Formulas.db (1997) changing order number (1998) RequiredFields template (1997) What's wrong with this replace? (2002) Help getting [shownext] to increment (2003) emailer (1997) Secure Server (1997) Separate SSL Server (1997) creative use of webcatalog (1998) WebDNA CAPTCHA (2008) emailer (1997) Nested tags count question (1997) Listwords and the & (2001) Not really WebCat- (1997) WebCatalog can't find database (1997) [WriteFile] problems (1997)