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:

[WebDNA] macOS 10.13.3 and WebDNA Mac Server 8.5.1 - hick-up (2019) [WebDNA] [append] does not add the newline char at the end of the new record?! (which causes subsequent [search] to fail.) (2009) Error: Missing closing tag '!' (2002) Nested tags count question (1997) Install Webcatalog under NT4.0 and Microsoft IIS 2.0 (1997) Emailer file formats (1998) dos command not working the same as does at prompt? (1998) Sending E-mail (1997) MacAuthorize hub, no modal password dialog? (1997) WebCatalog stalls (1998) Empty Shopping Carts? (1998) Secure Server (1997) Weird Math and SV (1997) Bit off subject -- Faxing orders (1997) Help! WebCat2 bug (1997) Thanks and Big News!!! (1997) Shownext never shows next...still (1997) Separate SSL Server (1997) bug in [SendMail] (1997) WebCat2b15MacPlugin - [protect] (1997)