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:
[date format] w/in sendmail (1997)
RE: Languages (1997)
hm. (2002)
multi-paragraph fields (1997)
sendmail (2000)
Invisible file issue now a real 'bug' (1999)
flushdatabases (2000)
Followup question re: checksum for credit cards? (1997)
[WebDNA] Ubuntu 14.04 & WebDNA (2017)
[shownext] and descending order (1997)
Auto Submit (2000)
dates and hex formatting (1997)
[WebDNA] Does not understand 'search' command? (2014)
WebCatalog for Postcards ? (1997)
Not really WebCat- (1997)
Price Not Appearing (2000)
webcat feature request (1997)
Nested tags count question (1997)
More on the email templates (I like it) (1997)
Images in the page without using separate image files ... (2003)