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

Update two tables with one form

Thread began 10/25/2010 1:08 pm by nickj | Last modified 10/26/2010 9:31 am by Jason Byrnes | 880 views | 6 replies |

nickj

Update two tables with one form

Is it possible to update two tables from one form?

1. Ideally the one form might have to update behaviors attached to a single button.

2. Short of that two update forms on a single page.

Thanks
Nick

Sign in to reply to this post

Jason ByrnesWebAssist

yes, you can do this by applying two instances of the Update record behavior to the page.


Just make sure that the first instance is not set to redirect to another page, the redirect should only be performed in the second instance.

Sign in to reply to this post

nickj

Great!

Perfect answer, quickly delivered

Thank You

nick

Sign in to reply to this post

nickj

Problem with the second table updating.

Problem with the second table updating.

I've zipped the file and the schema. The insert works fine but the update is not updating correctly, it's deleting the content and writing NULL! in the access_usr field. ther redirect is on the second form and it's working correctly.

Attached Files
Archive.zip
Sign in to reply to this post

Jason ByrnesWebAssist

your access55 form element is a part of another form

</form>
<form action="" method="post" name="Access5"><input name="access55" type="hidden" value="6" /></form>





since it is in another form, it is not posted when the main form posts.

change that code to:

<input name="access55" type="hidden" value="6" /></form>
Sign in to reply to this post

nickj

Perfect

This is a really useful feature, thanks a lot!

Nick

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