strange math
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 56968
interpreted = N
texte = Hi again,See if you can figure this one out? It beats the heck outta me._______________________________________________________in file1.tpl, a form contains number of variables, var1, var2, var3, etc.I use redirect to file2, as such[redirect file2.tpl?var1=[url][var1][/url]& var2=[url][var2][/url]&(etc....)]in file2.tpl I display the variables, and attempt to add them.var1= [var1]var2= [var2]total= [math][var1]+[var2][/math]if only var1 = 1, I get:var1= 1var2=total= 1if both var1 = 1 & var2=1, I get:var1= 1var2= 1total= 2but if only var2 = 1, I get:var1=var2= 1total=_______________________________________________________no total! I have no idea why it works one way but not another.Thanks for any insight in advance.Steve Braunsbraun1@twcny.rr.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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Hi again,See if you can figure this one out? It beats the heck outta me._______________________________________________________in file1.tpl, a form contains number of variables, var1, var2, var3, etc.I use redirect to file2, as such[redirect file2.tpl?var1=[url][var1][/url]& var2=[url][var2][/url]&(etc....)]in file2.tpl I display the variables, and attempt to add them.var1= [var1]var2= [var2]total= [math][var1]+[var2][/math]if only var1 = 1, I get:var1= 1var2=total= 1if both var1 = 1 & var2=1, I get:var1= 1var2= 1total= 2but if only var2 = 1, I get:var1=var2= 1total=_______________________________________________________no total! I have no idea why it works one way but not another.Thanks for any insight in advance.Steve Braunsbraun1@twcny.rr.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://webdna.smithmicro.com/
sbraun
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:
Protect and Serve (1999)
Sorting problem (1997)
[WebDNA] [replace] bug in v7.0? (2010)
mac os HOG? (2001)
End of line control characters (2000)
ShowIf helper? (1998)
Locking up with WebCatalog... (1997)
Navigator 4.0 & tables (1997)
emailer (1997)
Database causes out of memory error (2000)
[movefile] create stationery files (1998)
hmmm (2006)
WebMerchant Error (1998)
WebCatalog 402rc2 is now available (2001)
Exclude by date - multiple (1997)
PSC recommends what date format yr 2000??? (1997)
Nested tags count question (1997)
Duplicate Carts (2000)
wrong input values? (1997)
Counting LineItems (2000)