Re: How do I handle extra spaces?

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 46336
interpreted = N
texte = might help to use a different delimiter: [setheader cart=[cart]]NAME=[blname],[bfname]Then displaying them takes the comma out. First Name  Last Name DonovanWJ Starck wrote:> Well, let's try that. > > Page 1 (data collection page) > > form fields for [firstname] ,[midinit], [lastname] > > Page 2: (shopping cart page) > > [setheader cart=[cart]&db=catalog.db]name=[firstname] [midinit] > [lastname][/setheader] > > Page 3: > > form fields for [firstname] [midinit] and [lastname] so shopper can > verify and correct their info prior to final checkout. > > Oops, gotta parse [name] from the cart somehow. Or write it to a db and > recall it. > > firstname=[listwords words=[name]&delimiters= ][showif > [index]=1][word][/listwords] etc. > > Wait a minute, this breaks if firstname contains Mr. or Ms. or Dr. , > not really a problem with ending suffixes like generation, cause > they'll get clipped anyways, unless I have John H. Smith Jr and John H. > Smith III placing orders. > > OK, lessee, I can put a blind pop up form field in there so they can > choose that option. Might wanna write that to a db somewhere so I can > pull it back up. > > Seems to me like a lot of two step shuffle that would be nicely > ameliorated by the addition of two tiny fields added to the shopping > cart... > > ;) > > -- > > Will Starck > NovaDerm Skincare Science ------------------------------------------------------------------------ ------------------------------------------------------------- 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: How do I handle extra spaces? (John Peacock 2002)
  2. Re: How do I handle extra spaces? (WJ Starck 2002)
  3. Re: How do I handle extra spaces? (Donovan 2002)
  4. Re: How do I handle extra spaces? (John Peacock 2002)
  5. Re: How do I handle extra spaces? (WJ Starck 2002)
  6. Re: How do I handle extra spaces? (Donovan 2002)
  7. Re: How do I handle extra spaces? (John Peacock 2002)
  8. Re: How do I handle extra spaces? (WJ Starck 2002)
  9. Re: How do I handle extra spaces? (Donovan 2002)
  10. How do I handle extra spaces? (WJ Starck 2002)
might help to use a different delimiter: [setheader cart=[cart]]NAME=[blname],[bfname]Then displaying them takes the comma out. First Name [input][listwords words=[NAME]&delimiters=,][showif [index]=2][word][/showif][/listwords][/input]> Last Name [input][listwords words=[NAME]&delimiters=,][showif [index]=1][word][/showif][/listwords][/input]>DonovanWJ Starck wrote:> Well, let's try that. > > Page 1 (data collection page) > > form fields for [firstname] ,[midinit], [lastname] > > Page 2: (shopping cart page) > > [setheader cart=[cart]&db=catalog.db]name=[firstname] [midinit] > [lastname][/setheader] > > Page 3: > > form fields for [firstname] [midinit] and [lastname] so shopper can > verify and correct their info prior to final checkout. > > Oops, gotta parse [name] from the cart somehow. Or write it to a db and > recall it. > > firstname=[listwords words=[name]&delimiters= ][showif > [index]=1][word][/listwords] etc. > > Wait a minute, this breaks if firstname contains Mr. or Ms. or Dr. , > not really a problem with ending suffixes like generation, cause > they'll get clipped anyways, unless I have John H. Smith Jr and John H. > Smith III placing orders. > > OK, lessee, I can put a blind pop up form field in there so they can > choose that option. Might wanna write that to a db somewhere so I can > pull it back up. > > Seems to me like a lot of two step shuffle that would be nicely > ameliorated by the addition of two tiny fields added to the shopping > cart... > > ;) > > -- > > Will Starck > NovaDerm Skincare Science ------------------------------------------------------------------------ ------------------------------------------------------------- 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/ Donovan

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:

Nested search (1997) encrypt/decrypt problems (2001) PSC recommends what date format yr 2000??? (1997) SKU lookup (1997) [WebDNA] Still having problems (2008) Shop till you drop dead on the avenue ... (1997) Ooops-Serial Number for NT (1997) Disappearing Database (1998) Passing info in [Addlineitem] (1997) New Web Site Developers Database (1996) Hiding Brands (2004) Pull Down Menu for Catagories (2000) Accepting credit cards (1997) WebCat2 - [format thousands] (1997) WebCatalog 4 Install Problems - Not Answered ?? (2000) [OT] (waaaay OT) my photo (2004) shownext not showing next...still r2 (1997) Need help... (1997) Sorry, WebDNA Server Not Running! (2005) Location of Browser Info.txt file (1997)