i want to make a clickable element. every time the user is clicking on that element the server is running the following php function without reloading the page with a $_GET value:
function addOne() {
$num = file_get_contents("number.txt");
$fp = fopen('number.txt', 'w');
fwrite($fp, $num + 1);
fclose($fp);
echo "<script>document.getElementById('number').innerHTML = " . $num ."</script>";
}