[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:
[format 40s]text[/format] doesn't work (1997)
PCSDecrypt bugs still unfixed ... (2000)
[WebDNA] remove html comments (2009)
Firesite cache vs webcat cache (1997)
++ (2005)
Spell Check (2000)
Some Advise needed (1997)
Shell and telnet (2002)
RE: webcat error log (1998)
Dynamic Weather for my website - XML? (1999)
Follow-Up to: Removing [showif] makes a big difference in speed (1997)
Emailer setup (1997)
Multi-processor Mac info ... (1997)
service stop and restart (1997)
E-Mail Preferences in Admin Folder (1997)
[WebDNA] Installing Windows CICADA under IIS7/2008 Server Enterprise (2009)
[shownext] and sort (1998)
WC2f3 (1997)
Trouble with formula.db (1997)
[sendmail] and [formvariables] (1997)