Update radar/update.php

This commit is contained in:
2026-01-02 21:22:55 +01:00
parent 13deb30bdd
commit ff87e80aec

View File

@@ -1,8 +1,9 @@
<?php
// Controleer of afstand is meegestuurd
// Log alles wat binnenkomt
file_put_contents('log.txt', print_r($_POST, true), FILE_APPEND);
if(isset($_POST['afstand'])) {
$afstand = intval($_POST['afstand']); // integer
// Sla de waarde op in een tekstbestand
$afstand = intval($_POST['afstand']);
file_put_contents('afstand.txt', $afstand);
echo "OK";
} else {