Re: Passing a search through a form

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 55003
interpreted = N
texte = >... I'm wanting to let the user pass a complete search via a text >area [search db=....] without ending [/search], not needed) and >that's no problem however [interepret][query][/interpret] won't run >the search. >from post: >[If ("[dosearch]"="T")] >[Then] >[Interpret][query][/Interpret] >[founditems] > >[ListFields [datasource]] >[interpret][[FieldName]][/interpret] >[/ListFields] > >[/founditems] >[/search] >[/Then] >[Else][/Else] >[/If] I was correct, you're not nesting your webdna code properly. What you're doing is this, a perfect example of improper nesting: [interpret][query][/interpret] [founditems] [/founditems] [/search] .... but what you need to do is to properly nest your contexts: [interpret] [query] [founditems] [/founditems] [/search] [/interpret] .... or even better would be to do this, assuming you *also* change your instructions and tell your visitors to enter ONLY the search parameters, not the search tag itself: [search [query]] [founditems] [/founditems] [/search] -- Kenneth Grome ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Passing a search through a form ( Brian Fries 2003)
  2. Re: Passing a search through a form ( Gary Krockover 2003)
  3. Re: Passing a search through a form ( Kenneth Grome 2003)
  4. Re: Passing a search through a form ( Gary Krockover 2003)
  5. Re: Passing a search through a form ( Gary Krockover 2003)
  6. Re: Passing a search through a form ( Kenneth Grome 2003)
  7. Re: Passing a search through a form ( Stuart Tremain 2003)
  8. Re: Passing a search through a form ( Stuart Tremain 2003)
  9. Passing a search through a form ( Gary Krockover 2003)
>... I'm wanting to let the user pass a complete search via a text >area [search db=....] without ending [/search], not needed) and >that's no problem however [interepret][query][/interpret] won't run >the search. >from post: >[If ("[dosearch]"="T")] >[Then] >[interpret][query][/Interpret] >[founditems] > >[ListFields [datasource]] >[interpret][[FieldName]][/interpret] >[/ListFields] > >[/founditems] >[/search] >[/Then] >[Else][/Else] >[/If] I was correct, you're not nesting your webdna code properly. What you're doing is this, a perfect example of improper nesting: [interpret][query][/interpret] [founditems] [/founditems] [/search] .... but what you need to do is to properly nest your contexts: [interpret] [query] [founditems] [/founditems] [/search] [/interpret] .... or even better would be to do this, assuming you *also* change your instructions and tell your visitors to enter ONLY the search parameters, not the search tag itself: [search [query]] [founditems] [/founditems] [/search] -- Kenneth Grome ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Kenneth Grome

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:

Emailer (1998) Date/Time format problems (1997) Searching multiple Databases (1997) Re:Emailer setup (1997) Ok here is a question? (1997) IE Cache Problems... (1999) Adding freight and percentages (2000) access denied problem (1997) Search crashing server (1998) Do .tpls A Max File Size? (1998) CASTEGORIES IN DIFFERENT FRAMES (1997) How To question on setting up downloads (1997) WebCat virtual postcard is done! Thanks for the help! (1998) 2.0 Info (1997) Re2: Calculating multiple shipping... (1997) This list needs a digest: rant, rave... (1997) Search Form (2000) WebCommerce: Folder organization ? (1997) Protecting webdelivery (1997) Searching multiple fields (1997)