[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:

    
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:

WebDNA maxing out processor (2008) Mass Mail (2000) Email template names (1997) Price and Formula.db (2002) calculating time (2002) Obtaining a dice result (2007) Requiring that certain fields be completed (1997) PIXO Support (1997) send mail problem? (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Searching multiple Databases (1997) Database flushing does not work any more... (2000) webcat memory problem (2001) WebCat2: Master Counter snippet (1997) Snake Bites (1997) Out of the woodwork (2007) Falsifying [BROWSERNAME] (1998) Bug Report, maybe (1997) WebCat2: Items xx to xx shown, etc. (1997) Plugin or CGI or both (1997)