28/09/2022
if (isset($_POST['vote'])) { // Check if there is a vote POSTed to our page // Store the vote. I don't know how you did it the previous time, I'm just going to write it to a text file $file = fopen("votes.txt", "w"); fwrite($file, $_POST['vote']); fclose($file); } ?>