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:

[ShowCart] and GET vs. POST (1997) retail integration (2000) help with http upload (2000) Line Feed Character Appended (1998) Math Problem - Format? (1997) [Fwd: Rotating Banners ... (was LinkExchange)] (1997) Configuration Q (1998) service stop and restart (1997) japanese characters (1997) Country & Ship-to address & other fields ? (1997) Help Please WebDNA 6 Secure Forms Problem (2004) problem with NT beta (1997) [shell] (2003) service stop and restart (1997) Pulling Captions from JPGs (2003) Multiple edits/replacementsd to db. Possible? (1997) A question on sub-categories (1997) [SQL] & ODBC on Mac (2000) Speed Optimization - Mac (1997) best way to get 2 unique strings on the same page load? (2000)