[RESOLVED] Redirect syntax on update page
I have a page which is updating records in a related table to a main table, and would like it to redirect to the details page of the main table's record when the record in the related table has been updated.
I have tried using a hidden field in the table with the value set to the main table's record LodgeID, and the redirect set to:
$WA_redirectURL = "../product_details/index.php?LodgeID=".((isset($_POST["LodgeID"]))?$_POST["LodgeID"]:"");
But it is just drawing a blank at:
../product_details/index.php?LodgeID=
Also tried:
$WA_redirectURL = "../product_details/index.php?LodgeID=".$row_WADAlodgerates['LodgeID']."";
But no luck either.
Hopefully this is an easy one if the syntax is correct - I have attached a copy of the page for reference.
Thank you.
-------
Just to say I fixed this - the update page also had a Universal Email object that just needed its redirect also set to:
$WA_redirectURL = "../product_details/index.php?LodgeID=".$row_WADAlodgerates['LodgeID']."";
And it works.