Acces PHP function with clicking an html-button

indiananimator

New Member
\[code\]<html><body><button type="button" onclick="myFunc()">Click</button></body></html><?php function myFunc() { echo "Hello world"; }?>\[/code\]I made a code like that and tested it but nothing happened. So is it even possible to do it like that or should I just use JavaScript instead?
 
Back
Top