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: > >
> > >SCHEDULES >GALLERY > >
>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 form template, you cannot choose which page to go to by using radio buttons. But that doesn't mean WebCat2 won't work for you in this situation, you just have to take a different approach ...Here's what I do: Put this on the form page:
SCHEDULES GALLERY
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 use on the nextPage.tmpl. It's just like choosing two different pages with the radio buttons, but instead, you're actually choosing two different 'sections' of the same nextPage.tmpl.Sincerely, Ken Grome WebDNA Solutions Associated Messages, from the most recent to the oldest:

    
  1. Re: FORMS: Returning a specific page (Trevor Crist 1997)
  2. Re: FORMS: Returning a specific page (Kenneth Grome 1997)
  3. FORMS: Returning a specific page (Michael Winston 1997)
>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: > >
> [cart]> > >SCHEDULES >GALLERY > >
>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 form template, you cannot choose which page to go to by using radio buttons. But that doesn't mean WebCat2 won't work for you in this situation, you just have to take a different approach ...Here's what I do: Put this on the form page:
[cart]> SCHEDULES GALLERY
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 use on the nextPage.tmpl. It's just like choosing two different pages with the radio buttons, but instead, you're actually choosing two different 'sections' of the same nextPage.tmpl.Sincerely, Ken Grome WebDNA 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:

Universal root for WC errors? (1997) Appendfile memory usage (redux) (2003) [WebDNA] WebDNA is not parsing CSS file (2010) User / Pass in TCP connect (2007) [WriteFile] problems (1997) Fun with dates (1997) Authorize.net SIM/AIM deadline extended (2003) calculating ShipCost depending on weight (1997) WebDNA and PostGres SQL (2005) New public beta available (1997) WebCat2 Append problem (B14Macacgi) (1997) many-to-one problem (1998) Introduction/Tutorial/QuickStart (1997) RE: type 2 errors with ssl server (1997) Cookies? (1997) webcatalog approaching max (1998) Typhoon Rev. and PCS store problems (1999) Server Timeout (2001) Duplicate Cart ID (2001) Format question WC Mac f3 (1997)