Re: Fuzzy on [url] context

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19421
interpreted = N
texte = >(This is where they enter the new message): >[search db=msg.db&eqsubjectdatarq=[subject]&max=1] <<---here?Yes, if the [subject] could ever contain an & or =>[founditems] > <<---here?Yes, if the [subject] could ever contain a quote character like >[append db=msg.db]subject=[subject]&otherstuff[/append] <<---here?Yes, if the subject could ever contain & or =>[subject]Yes, if the [subject] could ever contain &, space, or =.The idea behind the [URL] context is that certain letters are illegal in some places. An HREF, for instance, must never contain a space, because it freaks out the browser and web server. Somewhat more subtle, but just as important, is text that happens to contain delimiter characters like & and =. Humans can see that the ampersand inside Casady&Greene means something very different from var1=Casady&var2=Greene, yet the computer is not so smart. So the [URL] context also converts & and = into special sequences that will automatically get converted back when necessary.So companyName=Casady&Greene won't do what you hope it will, but if you look at what companyName=[URL]Casady&Greene[/URL] displays, you'll see it becomes companyName=Casady%26Greene. If you append some text that looks like that to a database using WebDNA, you'll see that the actual text put into the database is Casady&Greene, because WebCatalog always decodes the URL-encoded text before storing it in the field.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Fuzzy on [url] context (PCS Technical Support 1998)
  2. Fuzzy on [url] context (Terry Wilson 1998)
>(This is where they enter the new message): >[search db=msg.db&eqsubjectdatarq=[subject]&max=1] <<---here?Yes, if the [subject] could ever contain an & or =>[founditems] > <<---here?Yes, if the [subject] could ever contain a quote character like >[append db=msg.db]subject=[subject]&otherstuff[/append] <<---here?Yes, if the subject could ever contain & or =>[subject]Yes, if the [subject] could ever contain &, space, or =.The idea behind the [url] context is that certain letters are illegal in some places. An HREF, for instance, must never contain a space, because it freaks out the browser and web server. Somewhat more subtle, but just as important, is text that happens to contain delimiter characters like & and =. Humans can see that the ampersand inside Casady&Greene means something very different from var1=Casady&var2=Greene, yet the computer is not so smart. So the [url] context also converts & and = into special sequences that will automatically get converted back when necessary.So companyName=Casady&Greene won't do what you hope it will, but if you look at what companyName=[url]Casady&Greene[/URL] displays, you'll see it becomes companyName=Casady%26Greene. If you append some text that looks like that to a database using WebDNA, you'll see that the actual text put into the database is Casady&Greene, because WebCatalog always decodes the URL-encoded text before storing it in the field.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

WebCatalog Upgrade Pricing? (1997) HELP! 10K hits per hour for pages that no longer exist! (2000) Setting up WebCatalog with Retail Pro data (1996) [input] [/input] (1997) Permission denied? (2004) Content-type:... (2000) I'm new be kind (1997) Shipping charge question (2003) Feature Request -COPYRECORD (2005) Sort Order on a page search (1997) OK, here goes... (1997) Showif date range comparison (1999) Email Formatting and Encryption (1998) Feature req. (2002) Data Type Search Problem (2004) using showpage and showcart commands (1996) Math confusion (2004) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Single Link browsing (1997) Stopping bad HTML propagation ? (1997)