Update radar/update.php
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user