Re: Changing the value assigned to a formvariable

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33459
interpreted = N
texte = >> >But can I use [formvariables] to retrieve the value and then reassign it >> >somehow on that same page. I've been trying to do that but can't find a >> >way to make it work. >> >>No, form values are not reassignable -- they are just like other >>values that come from the visitor's browser, like [ipaddress], they >>are under the control of the browser, not WebDNA. If you want to > >Uh? This is just true for WebCat prior to 4.0, isn't it? Well, obviously if you pass a formvariable named formvar1 into the page with a value of oldValue, then use this tag at the top of the page:[text]formvar1=newValue[/text]... the new default variable hierarchy will make webcat interpret all occurrences of the [formvar1] tag as newValue, NOT oldValue. But that's because it's finding the text variable value of formvar1 not the formvariable value of formvar1. Clearly this is because the new hierarchy puts text variables on top of formvariables in the hierarchy.To get the true formvariable value, you have to use this code:[formvariables name=formvar1&exact=t][value][/formvariables]... and the result will still be oldValue, because this code looks *only* at the existing formvariable values which have not changed, even though it may LOOK LIKE they have changed if all you use in your templates are tags like [formvar1] ...Confused enough? ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- 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: Changing the value assigned to a formvariable (Christer Olsson 2000)
  2. Re: Changing the value assigned to a formvariable (Kenneth Grome 2000)
  3. Re: Changing the value assigned to a formvariable (Christer Olsson 2000)
  4. Re: Changing the value assigned to a formvariable (Sally Reidy 2000)
  5. Re: Changing the value assigned to a formvariable (WebDNA Support 2000)
  6. Re: Changing the value assigned to a formvariable (Jesse Proudman (Lists Account) 2000)
  7. Re: Changing the value assigned to a formvariable (Sally Reidy 2000)
  8. Re: Changing the value assigned to a formvariable (WebDNA Support 2000)
  9. Re: Changing the value assigned to a formvariable (Jesse Proudman (Lists Account) 2000)
  10. Changing the value assigned to a formvariable (Sally Reidy 2000)
>> >But can I use [formvariables] to retrieve the value and then reassign it >> >somehow on that same page. I've been trying to do that but can't find a >> >way to make it work. >> >>No, form values are not reassignable -- they are just like other >>values that come from the visitor's browser, like [ipaddress], they >>are under the control of the browser, not WebDNA. If you want to > >Uh? This is just true for WebCat prior to 4.0, isn't it? Well, obviously if you pass a formvariable named formvar1 into the page with a value of oldValue, then use this tag at the top of the page:[text]formvar1=newValue[/text]... the new default variable hierarchy will make webcat interpret all occurrences of the [formvar1] tag as newValue, NOT oldValue. But that's because it's finding the text variable value of formvar1 not the formvariable value of formvar1. Clearly this is because the new hierarchy puts text variables on top of formvariables in the hierarchy.To get the true formvariable value, you have to use this code:[formvariables name=formvar1&exact=t][value][/formvariables]... and the result will still be oldValue, because this code looks *only* at the existing formvariable values which have not changed, even though it may LOOK LIKE they have changed if all you use in your templates are tags like [formvar1] ...Confused enough? ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- 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/ 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:

Snake Bites (1997) Renaming users local files with WebDNA based solution (2007) Sandbox Prefs (2003) Help name our technology! I found it (1997) WebCatalog/Mac 2.1b2 New Features (1997) Help name our technology! (1997) [WebDNA] WebDNA on LiveCD ... (2008) [WebDNA] Record click-thrus (2008) Problems deleting when a search field is blank... (1998) Re:Replace command help (1998) using webdna to determine pixel parameters (2000) Setting up shop (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) PCS Frames-Default page is solution! (1997) Not really WebCat (1997) Mac 2.1b2 speed (1997) the comparison character \ (2000) [WebDNA] PDF creation (2013) WebCat2 beta 11 - new prefs ... (1997) wierd [cart] action! (1997)