This topic is locked

Redirecting after record update

4/6/2006 17:54:10
PHPRunner General questions
D
davidmcconnell author

Ok, I'm new to PHP, PHPrunner, etc. I have two table, a "header" and a "detail" table, detail is related to header. When I click on the detail table from the header table list, I get all detail rows returned that are associated with the header. This all works great. What I would like to do, upon modifying one of the detail records, is redirect back to the page that shows the detail records associated with that particular header. Right now, If I use the redirect event back to the detail_list page, it shows all records in the table. How can I get it to just show the associated detail records? Any help would be greatly appreciated.
Thanks,

David

Sergey Kornilov admin 4/7/2006

David,
use this code to redirect back to list:

header("Location: details_list.php?a=return");

exit();