[SetHeader] docs?
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15441
interpreted = N
texte = The [SetHeader] docs are painful to find... the PDF manual isn't up to date with the HTML. For those who keep track of things, heads up.For anyone following my saga, I discovered that the following code allowed me to slip billing info into the shipping info - which may be useful in your code. My approach originally was to use a [math] context which failed since I wasn't working with numbers AND it doesn't allow one to set header fields.-- BEGIN SNIPPET(from a billing.tmpl via POST method form to shipping.tmpl$showcart)[showif [shippingSameAsBilling]=T][SetHeader cart=[cart]&db=[db]]ShipToname=[name]&ShipTocompany=[company][/SetHeader][/showif](use as many header variables as you like)-- END SNIPPETIt wasn't clear at all to me that I needed to use:ShipToname=[name] instead of>[ShipToname]=[name]although it makes sense to me NOW, since in-between the [] it would be replaced with the value =Dan which is complete nonsense.G'day.Dan Keldsen - djk@delphigroup.comDirector, I.S./Webmaster - webmaster@delphigroup.comDelphi Consulting Group, Inc. - http://www.delphigroup.com/100 City Hall Plaza - ph: 617-247-1511Boston, MA 02108-2106 - fax:617-247-4957
Associated Messages, from the most recent to the oldest:
| |
- [SetHeader] docs? (Dan Keldsen 1997)
|
The
[setheader] docs are painful to find... the PDF manual isn't up to date with the HTML. For those who keep track of things, heads up.For anyone following my saga, I discovered that the following code allowed me to slip billing info into the shipping info - which may be useful in your code. My approach originally was to use a
[math] context which failed since I wasn't working with numbers AND it doesn't allow one to set header fields.-- BEGIN SNIPPET(from a billing.tmpl via POST method form to shipping.tmpl$showcart)[showif [shippingSameAsBilling]=T][SetHeader cart=
[cart]&db=[db]]ShipToname=[name]&ShipTocompany=[company][/SetHeader][/showif](use as many header variables as you like)-- END SNIPPETIt wasn't clear at all to me that I needed to use:ShipToname=[name] instead of>[ShipToname]=[name]although it makes sense to me NOW, since in-between the [] it would be replaced with the value =Dan which is complete nonsense.G'day.Dan Keldsen - djk@delphigroup.comDirector, I.S./Webmaster - webmaster@delphigroup.comDelphi Consulting Group, Inc. - http://www.delphigroup.com/100 City Hall Plaza - ph: 617-247-1511Boston, MA 02108-2106 - fax:617-247-4957
Dan Keldsen
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:
Other then credit cards-how? (1997)
New command suggestion (1997)
REPLACE & MAX/STARTAT parameters doesn't work? (2000)
Erotic Sites (1997)
OK, here goes... (1997)
Document Contains No Data! (1997)
[WebDNA] Limits? (2009)
Database changes (1998)
Protecting webdelivery (1997)
webCatalog and Stocks (1998)
WebCat2.0b15-to many nested [xx] tags (1997)
autosensing lanague selection (1997)
Price recalc based on quantity (1997)
Re:Emailer and encryption (1997)
Moment of Thanks (1997)
WebCatalog seems to choke on large (2meg) html files. (1998)
Large Database Options? (1999)
Where can I find hex equivalents for ASCII characters? (2000)
error No such file (2001)
More questions about serial number dishing (1997)