This topic is locked
[SOLVED]

 Navigating back to a different list page after edit

3/25/2014 2:51:05 PM
PHPRunner General questions
P
Phil_G author

Hi

I am quite new at this and pretty ignorant when it comes to PHP or JavaScript...

I have a LIST page where one of the fields is a link that passes the ID of the current record to an EDIT page (not the EDIT page originally linked to the LIST page).

On the EDIT page I have a few things that need to be done including run a stored procedure on the server when a button is clicked.

So far so good, but I would like to go back to the original list page once this is done instead of going to the LIST page the EDIT page is linked to.

The list page is a child page with a key value if that helps?

Thanks

Sergey Kornilov admin 3/25/2014

In AfterEdit event use a redirect to the original List page:

header("Location: mytable_list.php");

exit();
P
Phil_G author 3/26/2014

Great! Thanks.

D
dangdk 5/25/2014



In AfterEdit event use a redirect to the original List page:

header("Location: mytable_list.php");

exit();



How can you do this if the edit page is a popup? The redirect opens the new page in the popup window (not what I want).