Re: Forms Search Questions

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11423
interpreted = N
texte = >>*1) How to let the user specify a result page when initiating a >>configurable search from a webpage. >> >>I've tried the following which doesn't work: >> >>
>>View the results with: >> >> >> >> >> >> >>etc. >> >>(Maybe ACTION can't be moved out of the FORM tag like this?) >>Two separate SUBMIT buttons would be okay, but how to do that without >>repeating the 4 search options on the forms? > >Use *one* results.tmpl, and use [SHOWIF] for showing the right part for the >choice made by you client.And if you have a lot of different results form choices, you can make your site easier to manage when you use [include resultsXXX] tags within those showif contexts on your 'results.tmpl'. Your 'results.tmpl' will have a bunch of choices like the ones below:[showif [pageFormat]=1] [include results1] [/showif][showif [pageFormat]=2] [include results2] [/showif][showif [pageFormat]=3] [include results3] [/showif]This 'results.tmpl' gets the value of the [pageFormat] variable from the choices you gave on the search page. Using [include] makes it easier to see what you're doing as a webmaster, because each resultsXXX file is an individual text file.You can even let your users create their own custom results pages using this technique ... which really lets them see your data in the way THEY want to see it. :)Sincerely, Ken Grome ..... ken@iav.com http://usarea.net/home.html Associated Messages, from the most recent to the oldest:

    
>>*1) How to let the user specify a result page when initiating a >>configurable search from a webpage. >> >>I've tried the following which doesn't work: >> >> >>View the results with: >> >>[cart]> >> >> >> >> >>etc. >> >>(Maybe ACTION can't be moved out of the FORM tag like this?) >>Two separate SUBMIT buttons would be okay, but how to do that without >>repeating the 4 search options on the forms? > >Use *one* results.tmpl, and use [showif] for showing the right part for the >choice made by you client.And if you have a lot of different results form choices, you can make your site easier to manage when you use [include resultsXXX] tags within those showif contexts on your 'results.tmpl'. Your 'results.tmpl' will have a bunch of choices like the ones below:[showif [pageFormat]=1] [include results1] [/showif][showif [pageFormat]=2] [include results2] [/showif][showif [pageFormat]=3] [include results3] [/showif]This 'results.tmpl' gets the value of the [pageFormat] variable from the choices you gave on the search page. Using [include] makes it easier to see what you're doing as a webmaster, because each resultsXXX file is an individual text file.You can even let your users create their own custom results pages using this technique ... which really lets them see your data in the way THEY want to see it. :)Sincerely, Ken Grome ..... ken@iav.com http://usarea.net/home.html 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:

Prices coming up 0.00 (2001) Somebody to open my eyes!!! (2004) WebCat2b15MacPlugin - [protect] (1997) WebCat2 - storing unformatted date data? (1997) [format 40s]text[/format] doesn't work (1997) Line Endings (2007) WC2f3 (1997) Renaming textA (1998) WC1.6 to WC2 date formatting (1997) ShowNext & Showif together (1999) Date/Time format problems (1997) Email Formatting (2001) counting characters and/or words (1997) question: webmerchant connection (1997) [browsername] (2001) writing db to disk (1997) (1997) Is [thisurl] http or https? (1998) Country & Ship-to address & other fields ? (1997) Help name our technology! (1997)