Re: variable value locked when passed to include
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 36954
interpreted = N
texte = On 7/3/01 2:51 PM, Gene Beljaeff
wrote:> But what is the value of [uname] after it exits the include file?> > I'll bet is now changed to someoneelse. (At least it was for me)> > I think this is strange behavior.> > GeneActually he was talking about doing this:Somepage.tpl has an include on it is calls [includefile=thatpage.tpl&uname=[uname]]In that include is this statement set:[uname][text show=F]uname=someoneelse[/text][uname]He wanted to override the variable that was sent to the include within thestatement set. Since it acts a formvariable you.You are correct if you display the values on somepage.tpl then they will notpick up what you sent to the include.Robert MinorDirector of Internet Services------------------------------------------------------------Cybermill Communicationshttp://www.cybermill.com http://www.merchantmaker.comProviding Ecommerce and interactive website development andhosting services on Macintosh, Windows NT, Unix, and AS/400.You best get your MIME right, and I mean RIGHT!-------------------------------------------------------------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:
On 7/3/01 2:51 PM, Gene Beljaeff wrote:> But what is the value of [uname] after it exits the include file?> > I'll bet is now changed to someoneelse. (At least it was for me)> > I think this is strange behavior.> > GeneActually he was talking about doing this:Somepage.tpl has an include on it is calls [includefile=thatpage.tpl&uname=[uname]]In that include is this statement set:[uname][text show=F]uname=someoneelse[/text][uname]He wanted to override the variable that was sent to the include within thestatement set. Since it acts a formvariable you.You are correct if you display the values on somepage.tpl then they will notpick up what you sent to the include.Robert MinorDirector of Internet Services------------------------------------------------------------Cybermill Communicationshttp://www.cybermill.com http://www.merchantmaker.comProviding Ecommerce and interactive website development andhosting services on Macintosh, Windows NT, Unix, and AS/400.You best get your MIME right, and I mean RIGHT!-------------------------------------------------------------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/
Bob Minor
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:
[WebDNA] Copy a whole row from a db to another db or table (2017)
Multiple prices (1997)
Max Record length restated as maybe bug (1997)
FlushDatabase Suggestion (1998)
Generating Report Totals (1997)
international time (1997)
EmailProblem (2003)
Supressing Error Messages (1998)
[WebDNA] WebDNA future (2010)
ReturnRaw and redirect one last question (1997)
convertWords... NEW (2001)
the dreaded unitShipCost (2003)
Weird Math and SV (1997)
Tax Moratorium Expiring (2001)
Some Questions (1997)
Nested tags count question (1997)
Banner not random (1999)
WebCat2b12 CGI Mac - [shownext] problem (1997)
WCS Newbie question (1997)
WebCat2 Append problem (B14Macacgi) (1997)