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:
WebCat2b12 forgets serial # (1997)
PCS Frames (1997)
change the number format (1997)
Search for 20 finds ... Eureka! (1997)
form data submission gets truncated (1997)
WebCat2b12 CGI Mac -- Problems propagating the cart through (1997)
RE:DatabaseHelper (1997)
2.0 Info (1997)
Is [thisurl] http or https? (1998)
unable to launch acgi in WebCat (1997)
How true is this? (1999)
View order not right (1997)
WebCat on Intel Core 2 macs anyone? (2007)
Conditional searching & displaying (1997)
encrypt (2000)
5.0: Blank shopping carts & other weirdness (2003)
Wonderin' whats the way (1998)
More on the email templates (1997)
Crashes and prior posting (2006)
Date format problems (1997)