B
|
bioman 10/30/2016 |
This is exactly what I was looking for! Thanks, Sometimes you need to redirect user to another page after new record was added. We'll show how this can be done for different types of pages (List/Edit/View/Print) You will have to add this code to AfterAdd event. In these examples we assume that table name is Cars and key column name is ID. Make sure to replace it with the actual table and field names (case-sensitive). Redirect back to the List page header("Location: Cars_list.php?a=return");
header("Location: Cars_edit.php?editid1=".$keys["ID"]);
header("Location: Cars_view.php?editid1=".$keys["ID"]);
header("Location: Cars_print.php?a=print&selection[]=".$keys["ID"]); |
![]() |
Admin 10/31/2016 |
In later versions of PHPRunner this functionality is built-in. |
B
|
bioman 11/1/2016 |
Hi Sergey, |