Exectue PHP Function from <button onclick=“”>
yama_HD. The question was asked: Apr 15, 2020. 07:57
1 answer
I want to execute a PHP Script, when i Click an HTML Button. I know, that i cant do this: <button onclick="myPhpFunction("testString")">Button</button>
or something similar. My goal is, that i execute some Commands on my Server when clicking this Button. Note: My php Function need variables from the JS/HTML.
Is there a way to do this?