Re: 3.0 [TEXT] variables

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20513
interpreted = N
texte = >>A simple example would be a form with several checkboxes. Currently there >>is a lot of code out there that deals with it like this: >> >> [Append ...]CheckBox1=[ShowIf >>[CheckBox1]=[raw][CheckBox1][/raw]]F[/ShowIf][HideIf >>[CheckBox1]=[raw][CheckBox1][/raw]][CheckBox1]&CheckBox2=[ShowIf >>[CheckBox2]=[raw][CheckBox2][/raw]]F[/ShowIf][HideIf >>[CheckBox2]=[raw][CheckBox2][/raw]][CheckBox2][/Append] >> >>Every time you want to use a checkbox value, you have to go through the >>whole [ShowIf]/[HideIf] routine again. What a drag.There's an easier way, just put one of these immediately before the ending tag :for every checkbox in that form. Then if a checkbox is checked a T (or whatever other value you give it) will be passed for that checkbox, and if it's not checked, a F will be passed.Actually when it's checked, a T will be passed first, then a F will be passed later, but since browsers always pass form values in the same order as they appear on the form, and since webcat ignores all but the first value for each variable passed, this little tricks works just fine ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: 3.0 [TEXT] variables (Kenneth Grome 1998)
  2. Re: 3.0 [TEXT] variables (Grant Hulbert 1998)
  3. Re: 3.0 [TEXT] variables (Christer Olsson 1998)
  4. Re: 3.0 [TEXT] variables (Michael Winston 1998)
  5. Re: 3.0 [TEXT] variables (Grant Hulbert 1998)
  6. Re: 3.0 [TEXT] variables (Rob Marquardt 1998)
  7. Re: 3.0 [TEXT] variables (Dave MacLeay 1998)
  8. 3.0 [TEXT] variables (Michael Winston 1998)
>>A simple example would be a form with several checkboxes. Currently there >>is a lot of code out there that deals with it like this: >> >> [Append ...]CheckBox1=[ShowIf >>[CheckBox1]=[raw][CheckBox1][/raw]]F[/ShowIf][HideIf >>[CheckBox1]=[raw][CheckBox1][/raw]][CheckBox1]&CheckBox2=[ShowIf >>[CheckBox2]=[raw][CheckBox2][/raw]]F[/ShowIf][HideIf >>[CheckBox2]=[raw][CheckBox2][/raw]][CheckBox2][/Append] >> >>Every time you want to use a checkbox value, you have to go through the >>whole [showif]/[hideif] routine again. What a drag.There's an easier way, just put one of these immediately before the ending tag :for every checkbox in that form. Then if a checkbox is checked a T (or whatever other value you give it) will be passed for that checkbox, and if it's not checked, a F will be passed.Actually when it's checked, a T will be passed first, then a F will be passed later, but since browsers always pass form values in the same order as they appear on the form, and since webcat ignores all but the first value for each variable passed, this little tricks works just fine ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

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 Cookie limit (2001) Me know logical no need (2002) WebCat2 Append problem (B14Macacgi) (1997) WebDNA install - linux (2002) Authenticate (2000) Frames and WebCat (1997) RAM variables (1997) Help- Spam Bots are spamming my site. (2007) $Replace with [founditems] (1997) Re:2nd WebCatalog2 Feature Request (1996) FYI: virus alert (1996) [OT] 'Email this story to a friend' (2003) return missing item (was:WebCat Sales) (1997) URGENT: WebDNA Server Not Running (2003) emailer (1997) Emailer Set Up (1997) Protecting webdelivery (1997) Online reference (1997) Credit card types (1997) Completed Orders (2006)