Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

dynamic switch to page based on drop down

New Here ,
Jul 25, 2009 Jul 25, 2009

Copy link to clipboard

Copied

Hi, i have a website and on page 1 i have a drop down with 3 values, each of these 3 values represent a different page that needs to load when the one submit button on the form is pressed, i have looked at some javascript to do this but the problem with this was it seemed to lose the session variable values on the second page (i have loads of other data entered on page1 and need to use it on page 2 to display on the screen. Have you any ideas how to do this? Thanks very much - Andy

TOPICS
Server side applications

Views

514
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 25, 2009 Jul 25, 2009

Copy link to clipboard

Copied

Doing this is really pretty basic, but it will take a bit of coding. You could have the form submit to an action page, this page will set all the form variables to session variables and then use the selected page from your page drop-down as the variable to populate a location tag (I'm a CF guy, so it's <cflocation> but each language has it's version of this.)  The user will them be taken to the appropriate page and all the data will be available to populate the page.

If you do not want this data to persist after landing on this page, be sure to kiil the session varuiables at the bottom of your page.

Hope this gets you going in the right direction.

--
Lawrence   *Adobe Community Expert*
www.Cartweaver.com
Complete Shopping Cart Application for
Dreamweaver, available in ASP, PHP and CF
www.twitter.com/LawrenceCramer

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jul 25, 2009 Jul 25, 2009

Copy link to clipboard

Copied

LATEST

http://forums.adobe.com/thread/426785

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines