searching twice on same field

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 15901
interpreted = N
texte = My search template is set up to allow a search on two fields. This works well as long as the two fields are different. However, if the same field is entered both times, the search comes up with 0 itemsThe search string passed to web catalog through the form looks like this:SearchField=Writeup&SearchAction=ws&SearchCriteria=vitamin+bible&SearchLogic=&SearchField2=Writeup&SearchAction2=wo&searchCriteria2=vitamin+hair+prostate&cart=29666141900&searchMax=3&startat=1As you can see, on the one hand I'm looking for a string, on the other any of the words will do.On the results page it is formatted as a context search as following:[search db=aliveBooksv1.db&max=[searchMax]&cart=[cart]&[SearchAction][SearchField]data[SearchLogic]=[SearchCriteria]&[SearchAction2][SearchField2]data[SearchLogic]=[SearchCriteria2]&startat=[startat]]So this particular search doesn't work. Is groupfield the only way to accomplish this? If so, what is the appropriate WebDNA command to grab the text either before it is sent from the form, or before it is processed by the context on the receiving template, in order that it might be massaged into the appropriate form?Chris Gursche EC&T Electronic Colour & Type Corp Associated Messages, from the most recent to the oldest:

    
  1. Re: searching twice on same field (Grant Hulbert 1998)
  2. searching twice on same field (Chris Gursche 1998)
My search template is set up to allow a search on two fields. This works well as long as the two fields are different. However, if the same field is entered both times, the search comes up with 0 itemsThe search string passed to web catalog through the form looks like this:SearchField=Writeup&SearchAction=ws&SearchCriteria=vitamin+bible&SearchLogic=&SearchField2=Writeup&SearchAction2=wo&searchCriteria2=vitamin+hair+prostate&cart=29666141900&searchMax=3&startat=1As you can see, on the one hand I'm looking for a string, on the other any of the words will do.On the results page it is formatted as a context search as following:[search db=aliveBooksv1.db&max=[searchMax]&cart=[cart]&[SearchAction][SearchField]data[SearchLogic]=[SearchCriteria]&[SearchAction2][SearchField2]data[SearchLogic]=[SearchCriteria2]&startat=[startat]]So this particular search doesn't work. Is groupfield the only way to accomplish this? If so, what is the appropriate WebDNA command to grab the text either before it is sent from the form, or before it is processed by the context on the receiving template, in order that it might be massaged into the appropriate form?Chris Gursche EC&T Electronic Colour & Type Corp Chris Gursche

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:

Sendmail truncation in Eudora Clients (1998) [WebDNA] Where is Speed Test? (2009) Rhapsody? (1997) Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997) New public beta available (1997) [Announce]: Web server security and password protection (1997) Duplicate Cart Problem in Netscape SOLUTION (2000) redirect with frames (1997) [WebDNA] eCommerce System Release (2018) Non-SGML Characters and databases (2004) Notepad problems (1998) Fwd: mondomail and Webcat (2000) Flash Stores (2003) Help name our technology! I found it (1997) Encrypt (2000) MacActivity and PCS (1997) greater than or equal to (1997) gremlins? (2000) Server Freeze (1998) returning the missing value (1997)