close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Multi-form process; how to pass validated data?

Thread began 4/11/2011 12:28 pm by Banksie | Last modified 4/13/2011 8:19 am by Jason Byrnes | 2147 views | 4 replies |

Banksie

Multi-form process; how to pass validated data?

I've, at last, managed to sort out an issue with binding validated fields to a form fields so that I can display messages (show if) if there are errors.

How do I get my validated fields / data to pass through to the next form in the process? The POST method doesn't seem to work after validation has taken place (and I even had to hand code the Header location for progressing on to next if all of the form fields were valid - the old VT code snippet :
<?php if ($_SERVER["REQUEST_METHOD"] == "POST") {
$url = "test_serverside_success.php";
Header("Location: $url");
}
?>

to reproduce the usual form action)

Sign in to reply to this post

Banksie

To see the form in action please view: test_serverside_validations.php

The Error messages appear here if validation fails but, if successful, the browser passes on the the next stage where I'd expect to pick up the usual $_POST entries.

Sign in to reply to this post

Jason ByrnesWebAssist

you need to set the action of the form to post to the second page, an add the server validation to the second page as well.

on the second page, go to the bindings panel, click the plus button and select Form Data, click the folder icon and select the first page to add dynamic data bindings for the form from the first page.

then add the server validation server behavior to validation the form, and use the post to capture the form variables into hidden.


The issue is that form post data only exists while the forms action page is processing, once that page finishes processing or the page is redirected, the post is destroyed.

Sign in to reply to this post

Banksie

Done - thanks. Got there in the end!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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