Update radar/update.php
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
<?php
|
<?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'])) {
|
if(isset($_POST['afstand'])) {
|
||||||
$afstand = intval($_POST['afstand']); // integer
|
$afstand = intval($_POST['afstand']);
|
||||||
// Sla de waarde op in een tekstbestand
|
|
||||||
file_put_contents('afstand.txt', $afstand);
|
file_put_contents('afstand.txt', $afstand);
|
||||||
echo "OK";
|
echo "OK";
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user