Re: How do I handle extra spaces?

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 46331
interpreted = N
texte = 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 http://www.novaderm.com wjs@novaderm.comOn Tuesday, December 17, 2002, at 09:29 AM, John Peacock wrote:> WJ Starck wrote: >> Please please SM can we have separate fields for first name, last >> name and middle initial?????????????! > > Create your own form with seperate first name, last name, and middle > initial fields, then glue them together yourself (with the appropriate > number of spaces, if you so choose). > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4720 Boston Way > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 301-429-5747 > > > ------------------------------------------------------------- > 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: 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)
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 http://www.novaderm.com wjs@novaderm.comOn Tuesday, December 17, 2002, at 09:29 AM, John Peacock wrote:> WJ Starck wrote: >> Please please SM can we have separate fields for first name, last >> name and middle initial?????????????! > > Create your own form with seperate first name, last name, and middle > initial fields, then glue them together yourself (with the appropriate > number of spaces, if you so choose). > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4720 Boston Way > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 301-429-5747 > > > ------------------------------------------------------------- > 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/ WJ Starck

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:

Security (2000) RE: Renaming textA (1998) SKU (1997) webcat memory problem (2001) [WebDNA] Screen Resolution - detection & redirect (2012) spaces in [texta] (1998) Trouble starting WC under OSX (2001) Help name our technology! (1997) Need relative path explanation (1997) Limiting user access to .tmpl files (1997) Nesting format tags (1997) WebCat2 - Getting to the browser's username/password data (1997) 256 character limit in URL? Kinda urgent... (2004) Error Lob.db records error message not name (1997) ShipTotal Yet Again (1998) html in a database (1998) Date format problems (1997) Another question about credit cards (1997) Anomaly ? causes NT application event log to overflow (1997) Protecting webdelivery (1997)