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,
SELECT *
FROM tblMyFirstTable
WHERE id = colname
SELECT *
FROM tblMySecondTable
WHERE id = colname
Thanks in advance,
TroyD