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:

Number of Open Databases (1998) Email password -- was Classified Ads 4 Sale (1998) Deleting Orders (1997) webcat & permissions (1999) Webstar 4.2 Stops Serving (2000) Nested Lookups (1998) PIXO with cometsite ... and/or other plugins (1998) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Deleting Orders (1997) Comparing two fields so the match (1998) form data submission gets truncated (1997) Too Much In (1998) bypassing typo's (1998) bug report -- leading < character (1998) Help formatting search results w/ table (1997) b12 cannot limit records returned and more. (1997) New WebCatalog site (1997) 2.0 Info (1997) calculating tax rates, mail order solutions and version 2 (1997) Am I going senile? (Price recalc based on quantity) (1997)