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:

date (1999) Looking up two prices in Formulas.db (1997) AOL (1999) Cart Question (1998) Search logic? (1998) Convert Chars Q (2000) Help! WebCat2 bug (1997) WebCat editing, SiteGuard & SiteEdit (1997) WebCatalog can't find database (1997) Search results templates (1996) Copyright that puppy (1998) search for all (1998) Card clearance, problems - solutions? (1997) Zipcodes (1998) Credit card processing - UK (1997) AUTONUMBER (2003) DON'T use old cart file! (1997) Options for http uploading of files (1999) search for all (1998) CAPTCHA system in webDNA (2005)