Re: preserving the zero's

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22907
interpreted = N
texte = >> >I am having trouble with numbers that begin with zero not coming through >> >in their pure form. For example, the customer selects a year for his/her >> >credit card expiration date. If the year is 2001, 01 should be sent. >> >However, the 0 is dropped in the process and only the 1 come >> >through. >> >> Can you explain exactly where you're losing the 0? If it's not from the form itself, then you need to give us more details ... > >I have a form in which a customer chooses the expiration date of credit >card. If year 2001 is selected, the value for [ExpYear] is 01. However, >what actually gets passed on to the next page is the single digit 1. Unless it's a specific browser problem, I think you need to fix your form. There's no mechanism in HTML that would make it drop the 0 from a value 01, so more than likely you're not even passing 01, you're probably just passing 1. I just tested this and it works fine with Netscape 4.08.Please post the exact HTML/WebDNA code for this form so we can see what's causing the problem ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: preserving the zero's (Kenneth Grome 1999)
  2. Re: preserving the zero's (Mike Eberly 1999)
  3. Re: preserving the zero's (Kenneth Grome 1999)
  4. preserving the zero's (Mike Eberly 1999)
>> >I am having trouble with numbers that begin with zero not coming through >> >in their pure form. For example, the customer selects a year for his/her >> >credit card expiration date. If the year is 2001, 01 should be sent. >> >However, the 0 is dropped in the process and only the 1 come >> >through. >> >> Can you explain exactly where you're losing the 0? If it's not from the form itself, then you need to give us more details ... > >I have a form in which a customer chooses the expiration date of credit >card. If year 2001 is selected, the value for [ExpYear] is 01. However, >what actually gets passed on to the next page is the single digit 1. Unless it's a specific browser problem, I think you need to fix your form. There's no mechanism in HTML that would make it drop the 0 from a value 01, so more than likely you're not even passing 01, you're probably just passing 1. I just tested this and it works fine with Netscape 4.08.Please post the exact HTML/WebDNA code for this form so we can see what's causing the problem ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

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:

Creating main- and sub-category search (1997) Problems with [Applescript] (1997) Re:2nd WebCatalog2 Feature Request (1996) unable to run webcatalog locally (1998) [WebDNA] Multi Part SendMail (2013) Date search bug (1998) Corruption in images (2004) Dumb Question about Docs (1997) What am I missing (1997) WebCatalog can't find database (1997) ooops...WebCatalog [FoundItems] Problem - LONG - (1997) Help needed! (1998) Snake Bites (1997) [WebDNA] Talklist Archive & Twitter (2009) ShowIf inside formulas (1997) random .inc files pulled and placed (2002) Sku numbers (1997) missing records (1998) Setting up WebCatalog with Retail Pro data (1996) Checkboxes to add to cart... (1998)