Page 1 of 1

code execution button.

Posted: Wed Feb 07, 2024 10:40 am
by Oleksandr
Good day.
tell me how to make the code written in the php file executed when the button is clicked, or configure the button so that it does not switch to the php page, but only executes the code.
It is better if it is possible to write the code as the action performed by the button

Re: code execution button.

Posted: Wed Feb 07, 2024 12:18 pm
by Pablo
You will need to implement an ajax script for this.

For example:
https://www.w3schools.com/jquery/ajax_ajax.asp

Re: code execution button.

Posted: Wed Feb 07, 2024 12:34 pm
by BaconFries