Re: Checking for blank form fields (sort of...)

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18346
interpreted = N
texte = >I would expect that if [subject] doesn't exist, it would leave the field >empty, but instead, it always puts the text [subject] in the field, except >when it really is getting passed a value.Yes, that's on purpose to be compatible with HTML pages that happen to have text in them that look like tags. If WebCatalog doesn't recognize a tag, it leaves it alone.So the solution is to compare against the raw text [xxx] like so:[ShowIf [subject]=[raw][subject][/raw]] No subject passed in! [/ShowIf]Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Checking for blank form fields (sort of...) (PCS Technical Support 1998)
  2. Re: Checking for blank form fields (sort of...) (Rob Marquardt 1998)
  3. Re: Checking for blank form fields (sort of...) (John Hill 1998)
  4. Checking for blank form fields (sort of...) (Dan Keldsen 1998)
  5. Re: Checking for blank form fields (sort of...) (Gary Richter 1998)
>I would expect that if [subject] doesn't exist, it would leave the field >empty, but instead, it always puts the text [subject] in the field, except >when it really is getting passed a value.Yes, that's on purpose to be compatible with HTML pages that happen to have text in them that look like tags. If WebCatalog doesn't recognize a tag, it leaves it alone.So the solution is to compare against the raw text [xxx] like so:[ShowIf [subject]=[raw][subject][/raw]] No subject passed in! [/ShowIf]Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

WebDNA Grep help wanted (2004) textarea data entry and display (2000) tcpconnect/tcpsend frustrations (2002) [SearchString] problem with [search] context (1997) [WebDNA] Date error (2017) select multiple 2 more cents (1997) WebCat editing, SiteGuard & SiteEdit (1997) The USArea® Network web site ... (1997) Show Databases in admin (2000) [WebDNA] WebDNA 7 (2011) Checking for blank form fields (sort of...) (1998) [WebDNA] Encode cookies ONLY via "method=Base64" (2012) wrong input values? (1997) creative use of webcatalog (1998) Emailer+NetTen [same machine]=? (2000) Webcat no longer supported? (2006) I'm tired of all this! (2000) [append] (1997) frames & carts (1997) checksum for credit cards? (1997)