Re: Resetting a Formvariable
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35210
interpreted = N
texte = Because there is a limit to the length of a math variable name. Thereis also no reason to use [math] at all, did you try using [text] instead?Please also be aware that form variables are readonly in 4.x, due to thesecurity enhancements that came with that version. You can always movethe value in the form variable to a math variable (try qty_ordered) ofyour own.John PeacockGlenn Busbin wrote:> > I'm passing a formvariable ok, but need to evaluate it after it's passed.> If [quantityordered] is greater than [numavailable], I want to reset> [quantityordered] = [numavailable].> > I'm using:> > [showif [quantityordered]>[numavailable]]> [Math][quantityordered]=[numavailable][/math][/showif]> > This always sets [quantityordered]=0 no matter how large [numavailable] is.> > Using:> [Formvariables]> [quantityordered], [numavailable]> [/Formvariables]> > shows that the correct values are being passed.> > Why can't I reset the value of this variable as per the docs for WC3?> > Thanks,> Glenn> > -------------------------------------------------------------> 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/-------------------------------------------------------------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:
Because there is a limit to the length of a math variable name. Thereis also no reason to use [math] at all, did you try using [text] instead?Please also be aware that form variables are readonly in 4.x, due to thesecurity enhancements that came with that version. You can always movethe value in the form variable to a math variable (try qty_ordered) ofyour own.John PeacockGlenn Busbin wrote:> > I'm passing a formvariable ok, but need to evaluate it after it's passed.> If [quantityordered] is greater than [numavailable], I want to reset> [quantityordered] = [numavailable].> > I'm using:> > [showif [quantityordered]>[numavailable]]> [math][quantityordered]=[numavailable][/math][/showif]> > This always sets [quantityordered]=0 no matter how large [numavailable] is.> > Using:> [formvariables]> [quantityordered], [numavailable]> [/Formvariables]> > shows that the correct values are being passed.> > Why can't I reset the value of this variable as per the docs for WC3?> > Thanks,> Glenn> > -------------------------------------------------------------> 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/-------------------------------------------------------------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/
John Peacock
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:
Not really WebCat (1997)
WebDNA Threaded Discussions? (2004)
Separate SSL Server (1997)
Pull Down Search (2000)
What am I missing (1997)
Secure Server not remembering discounts (1998)
RE: [WebDNA] tcp connect is slow...any ways to speed it up? (2008)
RE: Ongoing group search problems ... (1997)
ShipCosts database (1997)
Basics of tcpconnect (2006)
Maybe minor bug report (1997)
WebSTAR plugin update (2004)
Poll Please (2002)
Pithy questions on webcommerce & siteedit (1997)
Problems with date math (1997)
[WriteFile] problems (1997)
unix permissions theory applied to db security? Or...? (2000)
RE: New WebCatalog Version !!! (1997)
Here we go again...WebDNA - SQL- Clustering (2006)
Lost Records in Database (2001)