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:
Problems with [Applescript] (1997)
HELP WITH DATES (1997)
WC2b15 File Corruption (1997)
Re[2]: 2nd WebCatalog2 Feature Request (1996)
WebCat2: Formulas.db question (1997)
Webcatalog and IIS4b2 (1997)
[WebDNA] Feature requests - date format (2009)
Empty Shopping Carts? (1998)
Re:Virtual hosting and webcatNT (1997)
Help name our technology! (1997)
What really killed WebDNA? (2007)
[WebDNA] Problem with bcc email (2017)
Orders coming up blank (2004)
Bill To - Ship To Information display (1997)
all records returned. (1997)
Word search (1997)
WebCat and WebTV (1997)
Re[2]: Strange database format import (2000)
encryption in browser? NOT (1998)
[isfile] ? (1997)