This question already has an answer here:
- jQuery Ajax POST example with PHP 13 answers
everyone, I am having a hard time understanding how AJAX works. If anyone could help me, I need that when a button with onclick="CallFunction()"
is clicked, it would execute a PHP function CreateBet();
This is my only current HTML:
<html>
<div style="margin: 0 auto; width: 500px; height: 500px; border: 1px solid black;">
<button onclick="CreateBet()" type="button">Create Bet</button>
</div>
</html>
Thank you in advance :)
</div>