Re: Shopping Cart variation...

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14912
interpreted = N
texte = >>I have looked at the documentation and I can't find anything that will help >>me. I tried [URL][contractor][/URL]. But this convertedDuffy Home >>Builders to Duffy%20Home%20Builders and left it that way. > >This is a good point. Anyone need a feature to reverse the URL encoding? > >Here is an example why: > >1. Accept input from visitor >2. Preview the data to visitor and store the content in a hidden field >as follows: > >3. If user likes preview, the hidden content is passed on and then added >to the database. > >Issues: > >If content has in it, the text will get truncated. Ex: > >1. Users keys in: This is a test! >2. Preview should work fine, but the hidden field will be: > > The browswer will then pass only This is a for the variable >content because of the first . >3. Database gets updated with only This is a > >If I wrap URL around [content] then all will get passed but it will look >like this in the database: This%20is%20a... > >I can work around this by writing a temporary db record, but I just >though a reverse [url] function might be nice.I think what you need to look at is [convertchars] [/convertchars] when placing it back out on a page if I understand your question correctly.=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== Associated Messages, from the most recent to the oldest:

    
  1. Re: Shopping Cart variation... (grichter@panavise.com (Gary Richter) 1997)
  2. Re: Shopping Cart variation... (Olin 1997)
  3. Shopping Cart variation... (Paul Uttermohlen 1997)
  4. Re: Shopping Cart variation... (Grant Hulbert 1997)
>>I have looked at the documentation and I can't find anything that will help >>me. I tried [url][contractor][/URL]. But this convertedDuffy Home >>Builders to Duffy%20Home%20Builders and left it that way. > >This is a good point. Anyone need a feature to reverse the URL encoding? > >Here is an example why: > >1. Accept input from visitor >2. Preview the data to visitor and store the content in a hidden field >as follows: > >3. If user likes preview, the hidden content is passed on and then added >to the database. > >Issues: > >If content has in it, the text will get truncated. Ex: > >1. Users keys in: This is a test! >2. Preview should work fine, but the hidden field will be: > > The browswer will then pass only This is a for the variable >content because of the first . >3. Database gets updated with only This is a > >If I wrap URL around [content] then all will get passed but it will look >like this in the database: This%20is%20a... > >I can work around this by writing a temporary db record, but I just >though a reverse [url] function might be nice.I think what you need to look at is [convertchars] [/convertchars] when placing it back out on a page if I understand your question correctly.=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== grichter@panavise.com (Gary Richter)

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:

different ship dates and shopping carts -- how to? (1997) URL for Discussion Archive (1997) Formvariable won't update (1999) Listfiles context (2000) ODBC on OSX continued (2002) Shorthand for command args (1998) WebTen and WebCat (1997) RE: Signal Raised (1997) Formulas.db / Quantity Discount problem (1998) Country & Ship-to address & other fields ? (1997) SKU lookup (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) WebCat 3? (2000) hard carriage returns and sendmail (1998) Merging databases (1997) Kaaaaahhhhhhhnnnnnnn! (1997) orderfile stuff (1998) [subtotal] and others (1997) Web Catalog Instability (2000) Pre-flight public flag (1997)