close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Different Page Redirect following insert based on form data

Thread began 1/31/2010 2:32 pm by Daryl | Last modified 3/19/2010 5:04 pm by Daryl | 2240 views | 21 replies

Eric Mittman

You are very close in your summary of the steps needed, you have got it right for the first set session value server behavior. For the second session variable you will need to have it setup like this:

Trigger - use the lightning bolt to select the first yes/no select list
Session Name - name it the same as the first one you set
Value - for this you would set it to be the thank_you.php page

Once you do this you have two choices for how to proceed, you can either update the trigger for this second set session value to check for the value of the select list being 1 (yes) and then add in more set session value server behaviors, one for each select list, or you could update the trigger for this second set session value server behavior to check if any of the six select lists are set to 1. Here is what these may look like:

method 1: add a set session value server behavior for each of the select lists
custom code for trigger:

php:
if(isset($_POST['your first select list']) && $_POST['your first select list'] == 1){




method 2: have one set session value server behavior for all of the select lists

php:
if((isset($_POST['your first select list']) && $_POST['your first select list'] == 1) || (isset($_POST['your second select list']) && $_POST['your second select list'] == 1) || (isset($_POST['your third select list']) && $_POST['your third select list'] == 1) || (isset($_POST['your fourth select list']) && $_POST['your fourth select list'] == 1) || (isset($_POST['your fifth select list']) && $_POST['your fifth select list'] == 1) || (isset($_POST['your sixth select list']) && $_POST['your sixth select list'] == 1)){



If you have your custom trigger setup like this second example you would only need a total of two set session value server behaviors. If you wanted to go with the first example you would have a total of seven set session value server behaviors. One for the default, then six more for the select lists.

In the code where you are setting the redirect page you would replace the page name with your session variable:

$_SESSION['your session var']

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...