[date] formatting bug inside [orderfile]?

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16831
interpreted = N
texte = I'm using the cart's header fields to pass username and password information from page to page. It works great, but date and time formatting appears to break down when it's contained with a [orderfile] context. The following code (stripped to its essence, but still showing the same flaw) searches for a user's name and password, shows the page if found, and shows an error page if not (the cart number was passed in the referring link)------------------------------------------- outside the orderfile, date is [date] and formatted is [date %m/%d/%y]
[orderfile cart=[cart]][search db=users.db&eqPasswordDataRq=[header10]&eqUserDataRq=[header11]&PasswordBln k=T&UserlBlnk=T][showif [numfound]=1]inside the orderfile, date is [date] and formatted is [date %m/%d/%y][/showif][showif [numfound]!1] [include file=noAccess.incl] [/showif] [/search][/orderfile]-------------------------------------------This produces the following:outside the orderfile, date is 03/31/1998 and formatted is 03/31/98 inside the orderfile, date is 03/31/1998 and formatted is 03/31/1998%m/%d/%y] A bug? A problem? Should I be setting this up differently? For the time being, I'll be setting the formatted date/time *outside* the [orderfile] and assigning it to a cart header for use inside -- but there must be a better way.Rob Marquardt Designer/Resident Wirehead Toast Design300 First Avenue North, Suite 150 Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com Associated Messages, from the most recent to the oldest:

    
  1. Re: [date] formatting bug inside [orderfile]? (Rob Marquardt 1998)
  2. Re: [date] formatting bug inside [orderfile]? (PCS Technical Support 1998)
  3. [date] formatting bug inside [orderfile]? (Rob Marquardt 1998)
I'm using the cart's header fields to pass username and password information from page to page. It works great, but date and time formatting appears to break down when it's contained with a [orderfile] context. The following code (stripped to its essence, but still showing the same flaw) searches for a user's name and password, shows the page if found, and shows an error page if not (the cart number was passed in the referring link)------------------------------------------- outside the orderfile, date is [date] and formatted is [date %m/%d/%y]
[orderfile cart=[cart]][search db=users.db&eqPasswordDataRq=[header10]&eqUserDataRq=[header11]&PasswordBln k=T&UserlBlnk=T][showif [numfound]=1]inside the orderfile, date is [date] and formatted is [date %m/%d/%y][/showif][showif [numfound]!1] [include file=noAccess.incl] [/showif] [/search][/orderfile]-------------------------------------------This produces the following:outside the orderfile, date is 03/31/1998 and formatted is 03/31/98 inside the orderfile, date is 03/31/1998 and formatted is 03/31/1998%m/%d/%y] A bug? A problem? Should I be setting this up differently? For the time being, I'll be setting the formatted date/time *outside* the [orderfile] and assigning it to a cart header for use inside -- but there must be a better way.Rob Marquardt Designer/Resident Wirehead Toast Design300 First Avenue North, Suite 150 Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com Rob Marquardt

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:

A Global Variable (1997) Mult-File Upload w/ Web Star (2000) [isfile] ? (1997) Menu to select product variations (1997) Typhoon Rev. and PCS store problems (1999) [date] insanity! (2001) another problem (1997) Crediting money back to a customer (2000) Unexpected error (1997) Browser Caching (2003) Maybe off topic but how to charge (1997) Summing fields (1997) [WebDNA] contents of db files disappearing including triggers.db (2019) [OT] MS Security Flaw (2000) breaking words (1997) My X-Mas Wish (1999) shipcost (1997) Problems with [Applescript] (1997) Editing the search string (1997) WebCatalog NT beta 18 problem (1997)