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

2 update server behaviors on 1 page??

Thread began 1/20/2010 2:28 pm by troyd | Last modified 1/22/2010 8:51 pm by troyd | 881 views | 6 replies


2 update server behaviors on 1 page??

I'm reading in other threads that this is ok to do. And I have all the other pages (Results, Details, Delete, Insert), working fine so far. But with the Update page, I've ran into some difficulties.

First, when performing an update using the original update form, it updates with success. So my second update form doesn't seem to be killing the first form.

But when I click "Update" on the record for the second table and then try to update that record, it does nothing. Well, it goes to the Details page but without any update being performed to the table. And I also noticed that the URL is missing the actual ID. It just has ?id= after the url when using the second form.

I have this page set using 2 show if statements. One for each form. This is working great. If the "Update" button for the record for form 1 is clicked, then it fills in the form and the second form is hidden. And vise-versa.

The record value and redirect for the first form is

$WA_redirectURL = "tblMyrecords_Detail.php?id=".((isset($_POST["WADAUpdateRecordID"]))?$_POST["WADAUpdateRecordID"]:"")  ."";

$WA_where_fieldValuesStr = "".((isset($_POST["WADAUpdateRecordID"]))?$_POST["WADAUpdateRecordID"]:"")  ."";

What should it be for the second update form? Do I need to change WADAUpdateRecordID to WADAUpdateRecordID2?

Both tables use "id" as the key column. So it seems I have a session conflict, maybe?
The recordsets WHERE statement is as follows,

FROM tblMyFirstTable
WHERE id = colname

FROM tblMySecondTable
WHERE id = colname

Thanks in advance,

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





Ease of use


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