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:

Need help!! on searching in two databases. (1998) OT: Portland Oregon (2002) Testing the WebCat Email List Members (2000) mapping fields between databases (2001) Problems with [Applescript] (1997) Question on lineitems (2002) When is unitShipCost calculated? (1998) Country & Ship-to address & other fields ? (1997) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) using showpage and showcart commands (1996) FEATURE REQUEST: Auto Resizing of images (2002) [isfile] ? (1997) Solve the Problem, get the code! (2001) WCS Newbie question (1997) WebCat virtual postcard is done! Thanks for the help! (1998) [OT] I am old. (2003) Some pointers please (2008) Using [Showif] tag. Mac (1997) WebCat2 - [format thousands] (1997) Migrating to NT (1997)