Add radar/update.php
This commit is contained in:
11
radar/update.php
Normal file
11
radar/update.php
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
// Controleer of afstand is meegestuurd
|
||||||
|
if(isset($_POST['afstand'])) {
|
||||||
|
$afstand = intval($_POST['afstand']); // integer
|
||||||
|
// Sla de waarde op in een tekstbestand
|
||||||
|
file_put_contents('afstand.txt', $afstand);
|
||||||
|
echo "OK";
|
||||||
|
} else {
|
||||||
|
echo "No data";
|
||||||
|
}
|
||||||
|
?>
|
||||||
Reference in New Issue
Block a user