Re: Setting vars in a text file.....

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57864
interpreted = N
texte = Hi Nitai on 5/17/04 1:33 PM, Nitai @ ComputerOil at nitai@computeroil.com wrote: > If qou want to store a variable on the SAME template you can use >=20 > [text]myvar=3Dmyvalue[/text] Yes but can this be done by using writefile eg: [writefile [cart].txt][text]myvar=3Dmyvalue[/text][/writefile] and then pulled onto further pages later on but only if the file is present= ? >=20 > If you want to store MANY variables on the SAME template: >=20 > [text multi=3DT]myvar=3Dmyvalue&myvar2=3Dmyvalue2[/text] The same goes for this.... >=20 > Of if you want to store man< variables on the SAME page again, there is a= lso > the [table] tag. I'm on 4.5.1 so this is obsolete for me :( >=20 > But if you need to store a variable "overall" you have the options to cre= ate > a database, with the values of the user which you can get anytime anywher= e. Seriously considering this option as I'm not sure how to get around managin= g the content of this file I want to write (essentially a cookie on my own server) >=20 > The other option is to use a cookie as you have mentioned. >=20 > Nitai >=20 > PS: There might be another way, but I cant think of it now :-) >=20 >=20 > On 17/5/04 2:12 PM, "Alan White" wrote: >=20 >> Hi >>=20 >> I am trying to store a variable in a text file that contains information= on >> what currency a user wants to view. However when I am trying to do so i= t is >> not doing what I wanted. >>=20 >> What is the best way to write more than one variable to a file and then = pull >> this file as an include to get the values of the vars? >>=20 >> I don't even know if this is the best way to do this but I wanted to avo= id >> the use of cookies. >>=20 >> Any help appreciated. >>=20 >> Alan >>=20 >>=20 >>=20 >> ------------------------------------------------------------- >> 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/ >>=20 >=20 > -- > Redakto - Content Management that simply works > Content Management & eBusiness Systems >=20 > ComputerOil=AE AG > Dammstrasse 7 > 5400 Baden / Switzerland > Telefon +41 (0)844 44 55 66 >=20 > info@computeroil.com > http://computeroil.com >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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:

    
  1. Re: Setting vars in a text file..... ( Alan White 2004)
  2. Re: Setting vars in a text file..... ( "Nitai @ ComputerOil" 2004)
  3. Re: Setting vars in a text file..... ( Alan White 2004)
  4. Re: Setting vars in a text file..... ( "Nitai @ ComputerOil" 2004)
  5. Re: Setting vars in a text file..... ( Alan White 2004)
  6. Re: Setting vars in a text file..... ( "Nitai @ ComputerOil" 2004)
  7. Setting vars in a text file..... ( Alan White 2004)
Hi Nitai on 5/17/04 1:33 PM, Nitai @ ComputerOil at nitai@computeroil.com wrote: > If qou want to store a variable on the SAME template you can use >=20 > [text]myvar=3Dmyvalue[/text] Yes but can this be done by using writefile eg: [writefile [cart].txt][text]myvar=3Dmyvalue[/text][/writefile] and then pulled onto further pages later on but only if the file is present= ? >=20 > If you want to store MANY variables on the SAME template: >=20 > [text multi=3DT]myvar=3Dmyvalue&myvar2=3Dmyvalue2[/text] The same goes for this.... >=20 > Of if you want to store man< variables on the SAME page again, there is a= lso > the [table] tag. I'm on 4.5.1 so this is obsolete for me :( >=20 > But if you need to store a variable "overall" you have the options to cre= ate > a database, with the values of the user which you can get anytime anywher= e. Seriously considering this option as I'm not sure how to get around managin= g the content of this file I want to write (essentially a cookie on my own server) >=20 > The other option is to use a cookie as you have mentioned. >=20 > Nitai >=20 > PS: There might be another way, but I cant think of it now :-) >=20 >=20 > On 17/5/04 2:12 PM, "Alan White" wrote: >=20 >> Hi >>=20 >> I am trying to store a variable in a text file that contains information= on >> what currency a user wants to view. However when I am trying to do so i= t is >> not doing what I wanted. >>=20 >> What is the best way to write more than one variable to a file and then = pull >> this file as an include to get the values of the vars? >>=20 >> I don't even know if this is the best way to do this but I wanted to avo= id >> the use of cookies. >>=20 >> Any help appreciated. >>=20 >> Alan >>=20 >>=20 >>=20 >> ------------------------------------------------------------- >> 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/ >>=20 >=20 > -- > Redakto - Content Management that simply works > Content Management & eBusiness Systems >=20 > ComputerOil=AE AG > Dammstrasse 7 > 5400 Baden / Switzerland > Telefon +41 (0)844 44 55 66 >=20 > info@computeroil.com > http://computeroil.com >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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/ Alan White

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] Unsubscribe (2008) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) WC2b12: Yes, Formulas.db is for real (1997) Shared databases (2003) [OT] XML Primer (2004) Execute Applescript (1997) WebCatalog 2.0 b 15 mac (1997) Categories (2000) California Tax Rates (1998) PCS Frames (1997) RE: Problems with dbcatalog.exe (1997) [tcp connect] (1998) security (1997) many-to-one problem (1998) More on the email templates (1997) Multiple prices (1997) Username for Admin Group (1997) javascript for dynamic pulldowns? (1998) NTbeta18 corrupted? (1997) Date Formats (1997)