I think you could use a session variable to do this. You could send the filename to a server action which would store the value in a session. On server action success, you could go to your PHP page which would read the session value and then do whatever else it needs to do.
@ben’s solution is probably a better and simpler solution.
I was thinking of a case where I needed to pass variables to a PHP script and also needed to involve server connect to retrieve data, in which case using session variables is an option.
I would use the PHP file separately - incorporating into a server action file would probably make things complicated or just not work. You should be able to pass whatever you need to the PHP script - eg using POST variables as @ben suggested (or sessions, cookies etc.).
Carlos, although I used to use FPDF in a life previous to Wappler, I have listened to @patrick who said, why don’t you let the browser do the hard work?
I then went over to the DMXzone site and copied the code that they use, with great succes. An example can be found at https://pleysier.com.au/carlos/, where you can see that I have used App Connect variables (db not connected) to populate the page.
No need to save the PDF file. The template is the HTML document which is populated by App Connect variables which in turn receives the data from the database.
Hi Carlos, you are ahead of me (or rather, I am lagging behind) This will all be part of my wCart Tutorial which I will hopefully finish off this weekend. Please bear with me.