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 absolutelynothing 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 theform variable exists only if they checked it (and then it has the valueT), 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 allthe time for some test value different from T or F. For example, if youwant to know that the user did not already fill out this value, it willbe undef, until they actually answer the question. Then it can be blankor empty , or it could have a value this stuff; each state tells yousomething.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:
It is just you! :~}Seriously, though, the HTTP standards dictate that checkboxes do not exist as form variables unless they are checked. It has absolutelynothing 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 theform variable exists only if they checked it (and then it has the valueT), 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 allthe time for some test value different from T or F. For example, if youwant to know that the user did not already fill out this value, it willbe undef, until they actually answer the question. Then it can be blankor empty , or it could have a value this stuff; each state tells yousomething.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:
insert graphic in email (2000)
[SearchString] problem with [search] context (1997)
getting images' width/height (1998)
[TaxableTotal] - not working with AOL and IE (1997)
A question on sub-categories (1997)
WebCat2b13MacPlugIn - More limits on [include] (1997)
forming a SKU (1999)
Multiple download orders of the same product? (1997)
textarea inputs and returns (1999)
Summary search -- speed (1997)
Using Applescript to process WebCatalog functions (1998)
This message couldn't reach the list! (multi-column (1998)
Problems passing [SKU] with $Replace in 2.0 (1997)
Sorry - the list went haywire... (1998)
More on the email templates (I like it) (1997)
Searching multiple records for certain info (2000)
calculating tax rates, mail order solutions and version 2 (1997)
Multi-processor Mac info ... (1997)
[WebDNA] An unknown error occurred: TemplateNotFound /Library/WebServerB/Real_Estate/index.html (2019)
problems with WebCat-Plugin (1997)