Re: Saving Text Areas with Orders
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14581
interpreted = N
texte = Wrap can be virtual or physical, the syntax is as you'd expect: header1=[fieldX]. WebCatalog automatically converts CR/LF's and tabs into soft returns and spaces respectively. Later, if you'd like to display the contents of the header field in a textarea tag (for editing) you would wrap the field tag in the [input] context so the characters that were converted when saved (like CR/LF's and text like ) are converted back. That is:
John.>What is the syntax for storing a textarea tag to one of the header fields>of the shopping cart?>Should the header be WRAP=physical ?>>>John Hill wrote:>>The TextA, TextB, etc. and extra header fields (header1, header2, etc.)>in >>the shopping cart file are for just this sort of thing. You can store>text from a >>textarea tag just fine.>>>>John.>>>>> My customers require being able to write a few lines of comment to be>>>attached to their orders. >>>>>> After they see the cart, they will need to write their comments in a>>>TEXTAREA.>>>>>> Where do I save this? If they decide to go back to add or edit the>>>order, I don't want these comments to be lost. >>>John A. HillPacific Coast Softwarehttp://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
Wrap can be virtual or physical, the syntax is as you'd expect: header1=[fieldX]. WebCatalog automatically converts CR/LF's and tabs into soft returns and spaces respectively. Later, if you'd like to display the contents of the header field in a textarea tag (for editing) you would wrap the field tag in the
[input] context so the characters that were converted when saved (like CR/LF's and text like ) are converted back. That is:
John.>What is the syntax for storing a textarea tag to one of the header fields>of the shopping cart?>Should the header be WRAP=physical ?>>>John Hill wrote:>>The TextA, TextB, etc. and extra header fields (header1, header2, etc.)>in >>the shopping cart file are for just this sort of thing. You can store>text from a >>textarea tag just fine.>>>>John.>>>>> My customers require being able to write a few lines of comment to be>>>attached to their orders. >>>>>> After they see the cart, they will need to write their comments in a>>>TEXTAREA.>>>>>> Where do I save this? If they decide to go back to add or edit the>>>order, I don't want these comments to be lost. >>>John A. HillPacific Coast Softwarehttp://www.smithmicro.com
John Hill
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:
Exclamation point (1997)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
Webcatalog/Butler (1998)
Removing [showif] makes a big difference in speed (1997)
Search design (1997)
carriage returns in data (1997)
Classified (1999)
Webstar 1.3.1 PPC (1997)
A few questions. . . (1997)
Cookie Sniffer (2001)
WebSTAR 2.1 freezes my Mac (1997)
[WebDNA] Nginx (2010)
More on EudoraPro Email (1998)
Bug Report, maybe (1997)
Sitebuilder (2004)
Username for Admin Group (1997)
searching withe db up three directories not working (1999)
[SHOWIF AND/OR] (1997)
Include a big block of text (1997)
WebDNA 5 & iTools 7 (2003)