Re: FORMS: Returning a specific page
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11834
interpreted = N
texte = >Forgive me if this has been covered already.>>I'm trying to set up a form so that a person can choose (using radio>buttons) which page is returned to them when they hit the submit button.>So, if a person chooses the SCHEDULE button, the Sched.tmpl template is>served, and if they choose the GALLERY button, Gal.tmpl is served.>>Currently, my code (which doesn't work) looks like this:>>
>Any suggestions?Hi Michael,I guess you found out that your WebDNA above won't work ... :)That's because you have to go to a single template page from your formtemplate, you cannot choose which page to go to by using radio buttons. Butthat doesn't mean WebCat2 won't work for you in this situation, you justhave to take a different approach ...Here's what I do:Put this on the form page:
Put this on the nextPage.tmpl:[showif [section]=schedules][search db=db/comics.db&YourSearchParametersHere][founditems][/founditems][/search][/showif][showif section]=gallery][search db=db/comics.db&YourSearchParametersHere][founditems][/founditems][/search][/showif]The 'section' variable on the form page tells WebCat2 which [showif] to useon the nextPage.tmpl. It's just like choosing two different pages with theradio buttons, but instead, you're actually choosing two different'sections' of the same nextPage.tmpl.Sincerely, Ken GromeWebDNA Solutions
Associated Messages, from the most recent to the oldest:
>Forgive me if this has been covered already.>>I'm trying to set up a form so that a person can choose (using radio>buttons) which page is returned to them when they hit the submit button.>So, if a person chooses the SCHEDULE button, the Sched.tmpl template is>served, and if they choose the GALLERY button, Gal.tmpl is served.>>Currently, my code (which doesn't work) looks like this:>>
>Any suggestions?Hi Michael,I guess you found out that your WebDNA above won't work ... :)That's because you have to go to a single template page from your formtemplate, you cannot choose which page to go to by using radio buttons. Butthat doesn't mean WebCat2 won't work for you in this situation, you justhave to take a different approach ...Here's what I do:Put this on the form page:
Put this on the nextPage.tmpl:[showif [section]=schedules][search db=db/comics.db&YourSearchParametersHere]
[founditems][/founditems][/search][/showif][showif section]=gallery][search db=db/comics.db&YourSearchParametersHere]
[founditems][/founditems][/search][/showif]The 'section' variable on the form page tells WebCat2 which
[showif] to useon the nextPage.tmpl. It's just like choosing two different pages with theradio buttons, but instead, you're actually choosing two different'sections' of the same nextPage.tmpl.Sincerely, Ken GromeWebDNA Solutions
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:
[Sum] function? (1997)
searching for not-a-number - solved (2003)
listfiles shows invisible files ... (1999)
Linux WebDNA Server probs (2004)
WebDNA's portability (2007)
ShowNext (1997)
RAM variables (1997)
(2000)
WebMerchant and Mac Auth Hub Help Please (1999)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
WebCatalog 4 Install Problems (2000)
WebDNA + MLS (2006)
Search/sort in URL Was: GuestBook example (1997)
credit card authorization question (1997)
Criticism of WebCatalog: Keep It Coming! (1998)
If Empty ? (1997)
Editing the search string (1997)
Document Contains No Data! (1997)
Cookie still not working (1999)
E-mail loop ! (1997)