Run a PHP script with a button
Solved
Heros123
-
jordane45 Posted messages 30426 Registration date Status Moderator Last intervention -
jordane45 Posted messages 30426 Registration date Status Moderator Last intervention -
Hello,
I’m simply looking to add a button on my page that would run a PHP script, let me explain. I have my page.php and I’d like to add a button on it; on click I’d like it to execute MonScript.php. This script creates a PDF (via FPDF). When MonScript.php runs, it should automatically open the file download tab.
I’m on a local hosting (WAMP).
Thank you very much for your response even if it seems basic.
Best regards
I’m simply looking to add a button on my page that would run a PHP script, let me explain. I have my page.php and I’d like to add a button on it; on click I’d like it to execute MonScript.php. This script creates a PDF (via FPDF). When MonScript.php runs, it should automatically open the file download tab.
I’m on a local hosting (WAMP).
Thank you very much for your response even if it seems basic.
Best regards
Thank you very much!
You place your button inside a form