Re: YACBQ.....(Yet another checkbox question)

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35833
interpreted = N
texte = It is just you! :~}Seriously, though, the HTTP standards dictate that checkboxes do not exist as form variables unless they are checked. It has absolutely nothing to do with WebCatalog. If WebDNA included a context [exists], e.g. [if [exists [checkbox1]]][!]do this only if they checked it[/!]then it might seem more natural to use. Still, since you know that the form variable exists only if they checked it (and then it has the value T), you can use this: [showif [checkbox1]=T]which will only be true if they checked that box.And NULL is a very useful value in the right hands. Perl uses UNDEF all the time for some test value different from T or F. For example, if you want to know that the user did not already fill out this value, it will be undef, until they actually answer the question. Then it can be blank or empty , or it could have a value this stuff; each state tells you something.John PeacockBob Sneidar wrote: > > Is it just me, or does anyone else think it absurd to jump through hoops to > find out if a checkbox is not checked? If it is an object, then it should > have a value assigned to it, in the case of a checkbox either T or F. NULL > is NEVER a good value. This really needs to be addressed. I am definitely > going to stay away from checkboxes until it is. > > -- > Sincerely, > Bob Sneidar > Systems Manager > The Word For Today >------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: YACBQ.....(Yet another checkbox question) (John Butler 2000)
  2. Re: YACBQ.....(Yet another checkbox question) (Rob Marquardt 2000)
  3. Re: YACBQ.....(Yet another checkbox question) (Bob Sneidar 2000)
  4. Re: YACBQ.....(Yet another checkbox question) (Peter Ostry 2000)
  5. Re: YACBQ.....(Yet another checkbox question) (Bob Sneidar 2000)
  6. Re: YACBQ.....(Yet another checkbox question) (John Peacock 2000)
  7. Re: YACBQ.....(Yet another checkbox question) (Bob Sneidar 2000)
  8. Re: YACBQ.....(Yet another checkbox question) (Joseph D'Andrea 2000)
  9. Re: YACBQ.....(Yet another checkbox question) (Kenneth Grome 2000)
  10. Re: YACBQ.....(Yet another checkbox question) (Joseph D'Andrea 2000)
  11. Re: YACBQ.....(Yet another checkbox question) (Peter Ostry 2000)
  12. Re: YACBQ.....(Yet another checkbox question) (Will Starck 2000)
  13. Re: YACBQ.....(Yet another checkbox question) (WebDNA Support 2000)
  14. Re: YACBQ.....(Yet another checkbox question) (Bob Minor 2000)
  15. Re: YACBQ.....(Yet another checkbox question) (John Peacock 2000)
  16. Re: YACBQ.....(Yet another checkbox question) (Paul Fowler 2000)
  17. Re: YACBQ.....(Yet another checkbox question) (Rob Marquardt 2000)
  18. Re: YACBQ.....(Yet another checkbox question) (Bob Sneidar 2000)
  19. Re: YACBQ.....(Yet another checkbox question) (Kenneth Grome 2000)
  20. Re: YACBQ.....(Yet another checkbox question) (Peter Ostry 2000)
  21. Re: YACBQ.....(Yet another checkbox question) (Aaron Lynch 2000)
  22. Re: YACBQ.....(Yet another checkbox question) (Peter Ostry 2000)
  23. Re: YACBQ.....(Yet another checkbox question) (Britt T. 2000)
  24. Re: YACBQ.....(Yet another checkbox question) (John Butler 2000)
  25. Re: YACBQ.....(Yet another checkbox question) (Anup Setty 2000)
  26. Re: YACBQ.....(Yet another checkbox question) (Kim Ingram 2000)
  27. Re: YACBQ.....(Yet another checkbox question) (Will Starck 2000)
  28. Re: YACBQ.....(Yet another checkbox question) (Peter Ostry 2000)
  29. Re: YACBQ.....(Yet another checkbox question) (Aaron Lynch 2000)
  30. Re: YACBQ.....(Yet another checkbox question) (Peter Ostry 2000)
  31. Re: YACBQ.....(Yet another checkbox question) (Kenneth Grome 2000)
  32. Re: YACBQ.....(Yet another checkbox question) (Aaron Lynch 2000)
  33. Re: YACBQ.....(Yet another checkbox question) (Bob Sneidar 2000)
  34. YACBQ.....(Yet another checkbox question) (Will Starck 2000)
It is just you! :~}Seriously, though, the HTTP standards dictate that checkboxes do not exist as form variables unless they are checked. It has absolutely nothing to do with WebCatalog. If WebDNA included a context [exists], e.g. [if [exists [checkbox1]]][!]do this only if they checked it[/!]then it might seem more natural to use. Still, since you know that the form variable exists only if they checked it (and then it has the value T), you can use this: [showif [checkbox1]=T]which will only be true if they checked that box.And NULL is a very useful value in the right hands. Perl uses UNDEF all the time for some test value different from T or F. For example, if you want to know that the user did not already fill out this value, it will be undef, until they actually answer the question. Then it can be blank or empty , or it could have a value this stuff; each state tells you something.John PeacockBob Sneidar wrote: > > Is it just me, or does anyone else think it absurd to jump through hoops to > find out if a checkbox is not checked? If it is an object, then it should > have a value assigned to it, in the case of a checkbox either T or F. NULL > is NEVER a good value. This really needs to be addressed. I am definitely > going to stay away from checkboxes until it is. > > -- > Sincerely, > Bob Sneidar > Systems Manager > The Word For Today >------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ John Peacock

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:

URL for Discussion Archive (1997) WebCatalog 2.0 b 15 mac (1997) WebDNA Writer Needed (1997) Bug Report, maybe (1997) Emailer setup (1997) OT: Please set your computer's clock (1997) WebCatalog f2 Installation (1997) .html files and Apache AuthUserFile setting (2003) WebCatalog can't find database (1997) Custom Convertchars Database (2004) BadSuffix with 2.1b3 cgi (1997) WebDNA dying or ... ? (2005) Grouping search fields, etc. (1997) test (2003) Pricelist (1999) [taxRate] [TaxTotal] ? (1997) Sort Order on a page search (1997) I give up!! (1997) $adminput doesn't allow [include] files (1997) [WebDNA] Where's that developer list? (2012)