[solved] passing on values December 14, 2020, 02:15:19 PM Hi guys, i hope this is an easy question to answer.How can i easily pass on a value from one page to another?For example: I have tables 'client' and 'financials'. A client can have multiple financials records.When I add a client I use MasterForm and MasterField on the client Add Page.If I view a client I use a financials/list on the clients/View Page Design.When I click on the button Add New Financials I want to link the new record automatically to the client that I'm viewing.How can I do that?Thanks,Erwin Quote Selected Last Edit: December 30, 2020, 04:06:21 PM by Erwin
Re: passing on values Reply #1 – December 15, 2020, 08:38:17 AM @Erwin please read here beginner question (phprad.com) Quote Selected
Re: passing on values Reply #2 – December 15, 2020, 09:47:13 AM Thank you @willvin, that was indeed what I looked into, but because it's such a 'common' task (imo) I didn't want to use session variables or cookies for it.I am able to pass on the value by adding myself a 'Add New Financials' button on the page and linking that to financials/add?client_id=$page_idProblem with this is that it only works with Ajax Modal or Navigation not Preloaded Modal. Quote Selected
Re: passing on values Reply #3 – December 30, 2020, 04:06:06 PM See this post for a solution: https://phprad.com/forum/index.php?topic=1298.msg4116#msg4116 Quote Selected