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:

WebCat2b12--[searchstring] bug (1997) pc (1997) fix permissions on osx ... (2004) Frames and [cart] (1998) WC3 and SSL on NT (1998) Error Log.db --however (1997) problem serving foreign languages text (1997) random images (1997) A little syntax help (1997) Template cache problem with WC4 on Mac OS X (2000) Can this be done? (1997) Another question (1997) Multiple Pulldowns (1997) WebCatalog can't find database (1997) how do you and/or in a search? (1997) Some Questions (1997) Serving images from databases (1998) using showpage and showcart commands (1996) Emailer help....! (1997) Major Security Hole IIS NT (1998)