close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Multi Step Forms

Thread began 5/26/2010 8:42 am by saf01 | Last modified 6/01/2010 2:53 pm by Jimmy Wu | 2851 views | 8 replies |

saf01

Multi Step Forms

Hi. Can someone please help me understand.

Ive made three forms with CFB. All validating and so forth.

Ive changed each forms action to go to the next form e.g:

Form1 > Form2 > Form3 - This is where the final submit form and the action of Form3 will go to an email as a quote number depending on what was chosen in Form1, Form2 and Form3.

So how can I get the values chosen in Form1 to go to Form2 and then Form2 to Form3.
and stop users going directly to Form2 or Form3.php in their browser?

Please help. Cheers.

Sign in to reply to this post

Jimmy Wu

At the top of each page, you would want to store the values posted by the previous form into session variables. You would want to check that the post values are set using the isset function and then if they aren't set, then you would want to check if the session variables are set. If neither are set, then you would want to forward back to the previous form, so form 3 > form 2 > form 1. This will prevent jumping to a new form before filling out the previous form and submitting it. You would also have all the form inputs stored in session variables after all 3 forms are filled out.

Sign in to reply to this post

saf01

Thanks for your answer. Please could you tell me how I would store sessions - which extension would I use for this procedure? Cheers.

Sign in to reply to this post

Cologne

Aint there a nice tutorial to use with the cookie extension?

06_form_values.swf

may like that?

Sign in to reply to this post

Jimmy Wu

Yes, Cookies toolkit would probably be helpful on accomplishing this. You can set session variables using this extension.

Sign in to reply to this post

saf01

Cheers for your help.

Sign in to reply to this post

Jimmy Wu

No problem. If you run into any issues with Cookies Toolkit, please feel free to open a new thread.

Sign in to reply to this post

saf01

Hello again.

Im struggling to make a multi step forms using Cookies Toolkit.

Ive created 3 simple forms in CSS Form Builder, each action for the submit button goes the next page and this works fine. But when I type in form2.php in the browser it doesn't redirect me to form1.php, basically I can get go to form2.php and form3.php directly and it doesn't redirect me back to form1.php.

Please help. Cheers,

Sign in to reply to this post

Jimmy Wu

You would want to check that the session variables aren't already set for the variables from Form1 and the post values aren't set from those values either. To get the session variable, you would use $_SESSION['<variable name>'] and for the post values, you would use $_POST['<variable name>']. If neither are set, then you would want to forward to form1 again.

Sign in to reply to this post

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...