Re: Ampersand is breaking search context

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22713
interpreted = N
texte = >>How do I >>A: Properly create a form that allows a user to enter a name like Meyer & >>Frank into a text field that will be appended to my database? > > 1- Collect the data in a form. > 2- Put [url] contexts around the field tags inside the append context. > >>B: Properly construct a search like the above to then find the record that >>contains the ampersand character. > > [search > db=Catalog.db&eqArtistdatarq=[url][Artist][/url]&eqTitledatarq=[url][Title][ /url]] > >From what I understand then, this method converts all ampersands into & before appending to the database. Does a search where a user types an ampersand into a text input actually know to search for the url equivalent? And, how can I compensate for the existence of ampersands pre-existing in the database, such as when it is imported from another source?Mike Davis Associated Messages, from the most recent to the oldest:

    
  1. Re: Ampersand is breaking search context (Mike_Davis 1999)
  2. Re: Ampersand is breaking search context (Kenneth Grome 1999)
  3. Ampersand is breaking search context (Mike_Davis 1999)
>>How do I >>A: Properly create a form that allows a user to enter a name like Meyer & >>Frank into a text field that will be appended to my database? > > 1- Collect the data in a form. > 2- Put [url] contexts around the field tags inside the append context. > >>B: Properly construct a search like the above to then find the record that >>contains the ampersand character. > > [search > db=Catalog.db&eqArtistdatarq=[url][Artist][/url]&eqTitledatarq=[url][Title][ /url]] > >From what I understand then, this method converts all ampersands into & before appending to the database. Does a search where a user types an ampersand into a text input actually know to search for the url equivalent? And, how can I compensate for the existence of ampersands pre-existing in the database, such as when it is imported from another source?Mike Davis Mike_Davis

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:

RE: [REPLACE] inside [FOUNDITEMS] (1998) What am I missing (1997) Fun with Dates - revisited (1997) re: How can I record purchases to a database? (1998) 5.0 feature request: (2001) Webstar 1.3.1 PPC (1997) WebCat b13 CGI -shownext- (1997) no time stamp & different times from emailer (1998) Uh...can someone help me out with the b10? (1997) WebCat Documentation (was [platform] tag?) (1998) Using Applescript to process WebCatalog functions (1998) WebMerchant 1.6 and SHTML (1997) Fw: Webcat followup question (1999) More questions about serial number dishing (1997) Database Helper Update (1998) [WebDNA] fastcgi 7+ & [cart]? (2010) A little syntax help (1997) Getting Emailer to send mail (1997) Help needed! (1998) price on detail, but not shoppingcart (1997)