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 havetext 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 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>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 havetext 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 | Typhoon619/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:
OT: JavaScript Question (well... Using WebCat with it too) (2001)
Multi-processor Mac info ... (1997)
.html to .tpl; ***TIP (1998)
I want a 404 (2005)
Separate SSL Server (1997)
Convert aliases to sym links (2002)
[WebDNA] Search Problem (2011)
[WebDNA] ONLY the FIRST continuous run of numeric chars? (2008)
[OT] Live Chat with Video capability (2008)
[isfile] ? (1997)
Re:Random Command (1997)
[searchString] (1997)
form data submission gets truncated (1997)
File upload in Webstar (2001)
Date Time Oddness (1999)
Re:[off] Promotions Co? (1997)
Checkboxes (1998)
problems with 2 tags shakur (1997)
BBEdit and WebCatalog 2.0? (1997)
WebCat 4 crashes WebStar / Shownext Links (2001)