close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

I want a form to be confirmed (on a new page) before it is saved to the database.

Thread began 2/12/2020 3:06 pm by Jonas | Last modified 3/16/2020 9:39 am by Ray Borduin | 67 views | 3 replies |

Jonas

I want a form to be confirmed (on a new page) before it is saved to the database.

I want a form to be confirmed (on a new page) before it is saved to the database.
1. The user fills out the form.
2. The user is sent to a new page where the content from the form is displayed.
3. If the user confirms - the contents are saved in the database.

How do I? I can't find any tutorial on this. I think I've seen one before. Has it been removed?

There is an old post in the forum that reminds me of my question (http://www.webassist.com/forums/posts.php?id=7584). But that doesn't give enough answers.

Sign in to reply to this post

Ray BorduinWebAssist

Have your first page submit to the confirm page by setting the Form action to the confirm page. That first page doesn't need any server behaviors.

On the second page use the bindings panel to add the form from the first page so you can easily display the submitted values.

Then add hidden form elements and set their values from the form bindings as well so that they will be re-submitted on the confirm page and can be inserted easily from there.

Just make sure the form button names are different on each page so you can identify which page is being submitted in your insert server behavior and use the button press trigger for the second form when doing the insert.

Sign in to reply to this post
Did this help? Tips are appreciated...

Jonas

I'm confused. I have a form that is three pages long.

On the first two pages are different fields to be filled.

On the last page, the contents of the two previous pages should be displayed. And the user should click in a confirm radius and press the send button. Then all fields should be inserted to the database.

When I test it seems to work, and a thank you page appears. But nothing is saved to the table. There is no error-message. What have I missed?

All data is displayed on the last page when I echo each field. But I'm not sure what value I should choose to attach to Insert Record. Since I now have two forms to choose from (page 2 and page 3). In addition, each field has a copy, as they echo. For each form field to be linked, there is three to choose from in the bindings tab.

Sign in to reply to this post

Ray BorduinWebAssist

The bind column for the insert should be able to use the same value as the echo on the page as long as you have them all in hidden form elements.

Just create a hidden form element for each value that you are displaying with the correct value. Then when you bind the insert you can bind to the hidden form elements you have created.

Sign in to reply to this post
Did this help? Tips are appreciated...

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