[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]&PasswordBlnk=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/98inside 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 MarquardtDesigner/Resident WireheadToast Design300 First Avenue North, Suite 150Minneapolis MN 55401612.330.9863 v612.321.9424 fwww.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]&PasswordBlnk=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/98inside 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 MarquardtDesigner/Resident WireheadToast Design300 First Avenue North, Suite 150Minneapolis MN 55401612.330.9863 v612.321.9424 fwww.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:
urls (2005)
HTML Editors (1997)
Calculating multiple shipping... (1997)
[showif] with ! (2000)
ShowIf variables (1997)
What am I missing (1997)
Multiple Newcarts (1996)
NT - Thanks and Taxes (1997)
Trigger time setting (2002)
[WebDNA] Clean URLS job - will pay (2010)
[WebDNA] Need Rosetta to install on OS X? (2010)
WebCatalog Prefs.ref file ? (1998)
Re:Searching for ALL / empty form field (1997)
WCS Newbie question (1997)
ups quickcost [repost] (1999)
Help! WebCat2 bug (1997)
Emailer Set Up (1997)
Simple way to create unique SKU (1997)
Draft Manual, Tutorial, and more (1997)
splitting numbers in webDNA? (1997)