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. > > Gene Actually he was talking about doing this:Somepage.tpl has an include on it is calls [include file=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 the statement set. Since it acts a formvariable you.You are correct if you display the values on somepage.tpl then they will not pick up what you sent to the include.Robert Minor Director of Internet Services ------------------------------------------------------------ Cybermill Communications http://www.cybermill.com http://www.merchantmaker.comProviding Ecommerce and interactive website development and hosting 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:

    
  1. Re: variable value locked when passed to include (Bob Minor 2001)
  2. Re: variable value locked when passed to include (Gene Beljaeff 2001)
  3. Re: variable value locked when passed to include (Bob McPeak 2001)
  4. Re: variable value locked when passed to include (Bob Minor 2001)
  5. Re: variable value locked when passed to include (Bob Minor 2001)
  6. variable value locked when passed to include (Bob McPeak 2001)
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. > > Gene Actually he was talking about doing this:Somepage.tpl has an include on it is calls [include file=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 the statement set. Since it acts a formvariable you.You are correct if you display the values on somepage.tpl then they will not pick up what you sent to the include.Robert Minor Director of Internet Services ------------------------------------------------------------ Cybermill Communications http://www.cybermill.com http://www.merchantmaker.comProviding Ecommerce and interactive website development and hosting 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:

WebCat2 beta FTP site (1997) RE: Emailer prefs in two places ... (1997) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) convert characters (2003) WebCat2: Items xx to xx shown, etc. (1997) nested context (1998) Preventing Merchant Settling ? (1997) webdna users.db (2005) Summing fields (1997) [protect admin] (1997) cart info (1998) international time (1997) spawn (1998) Sorting error (1997) Summary layout (1997) Serving images from databases (1998) Setting up WebCatalog with Retail Pro data (1996) WebDNA-Talk Digest mode broken (1997) WebCat2 beta 11 - new prefs ... (1997) TaxTotal Problem (1997)