RE: URL too Long?
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13106
interpreted = N
texte = Tim ->Is ther a charater limit for the amount of info. you can pass through a url>statement?>Is it an html limit, or a WebCat acgi limit?>All I want to do is pass the title of a product through to the>fullfilment.txt file and the ViewOrder.tmpl file.>This code will work as a form:[...]>This code will not work, but I want it to work. Why is this? What I mean by>not working is that it will cut off part of the title information. Example :>title=The Big Red Wagon, will be placed into the shoppingcart file as>The.>
href=ShoppingCart.tmpl$add?db=arkin.txt&cart=[cart]&sku=[sku]&textA=[title]>>Add to CartThis is a common problem with URLs - you can't have spaces in a URL, as nearly all browsers will just cut off the URL at the first space. The fix is very simple - just use a [url] context around whatever is giving you a problem (like...&sku=[sku]&textA=[url][title][/url]...), which will encode all special characters (' ' becomes '%20'), allowing them to be sent in a URL with no problems.Special characters in your form will be automatically encoded by the browser, which is why it was working when the hyperlink was not.I hope this helps,Marc EagleStarNine Technologieshttp://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
| |
- RE: URL too Long? (Marc Eagle 1997)
|
Tim ->Is ther a charater limit for the amount of info. you can pass through a url>statement?>Is it an html limit, or a WebCat acgi limit?>All I want to do is pass the title of a product through to the>fullfilment.txt file and the ViewOrder.tmpl file.>This code will work as a form:[...]>This code will not work, but I want it to work. Why is this? What I mean by>not working is that it will cut off part of the title information. Example :>title=The Big Red Wagon, will be placed into the shoppingcart file as>The.>
href=ShoppingCart.tmpl$add?db=arkin.txt&cart=[cart]&sku=[sku]&textA=[title]>>Add to CartThis is a common problem with URLs - you can't have spaces in a URL, as nearly all browsers will just cut off the URL at the first space. The fix is very simple - just use a
[url] context around whatever is giving you a problem (like...&sku=[sku]&textA=
[url][title][/url]...), which will encode all special characters (' ' becomes '%20'), allowing them to be sent in a URL with no problems.Special characters in your form will be automatically encoded by the browser, which is why it was working when the hyperlink was not.I hope this helps,Marc EagleStarNine Technologieshttp://www.smithmicro.com/
Marc Eagle
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:
Show shoppingcart after remove last item (1997)
IE, Layers, and Select (2002)
Pay Flow Pro error (2002)
RE: PDF (1999)
Explorer oddities (1997)
Satisfy Me ! was: Why can't support be satisfying to purchasers? (2000)
WebCommerce: Folder organization ? (1997)
shipcost (1997)
checkbox results written to a database (1999)
nested showif? (1998)
Date format problems (1997)
Help! WebCat2 bug (1997)
Pithy questions on webcommerce & siteedit (1997)
[OT] Strange bounced message (2000)
using showpage and showcart commands (1996)
Best Place for AuthorizeNet Call (2003)
typo in docs (2000)
[FoundItems] solved - thanks (1997)
WebCat2 as a chat server? (1997)
PROTECT PAGES (2002)