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 Consultant808-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:
>> >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 Consultant808-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:
[OT] - New Zealand Meteorite (2004)
Limitations on fields? Server is crashing (1997)
Leap Day Triggers? (2000)
WebCat B13 Mac CGI -- Frames question (1997)
WebCat2: multiple currency support (1997)
Where's Cart Created ? (1997)
[referrer] tag (1997)
Possible Bug in 2.0b15.acgi (1997)
Multiple prices (1997)
Using the new syntax/scoping methods (2000)
Editing Users.db (1997)
What is WebDNA (1997)
how would you trigger something to happen once a week - every (2001)
sendmail tag when with in comment tags. (2000)
F3 crashing server (1997)
RE: protect tag on NT (1997)
MacAuthorize hub, no modal password dialog? (1997)
What port is Email on ? (2000)
[/application] error? (1997)
Need relative path explanation (1997)