Web updated
[weathermon.git] / web / send.php
index 7a698389538913b30237a4518f22d55723d8026c..60d21dbbc704bfedb1c8826a2b3c74ad0a779f7b 100644 (file)
     }
         
     $str = "CALL meteo.submit_value('".$stype."','".$sid."','".$param."',".$value.",NULL)";
-        if (!$connection->query($str)) {
-            header('HTTP/1.1 500 Internal Server Error');
-            exit;    
-        } else {
-            $connection->commit();
-?>        
-<html>
-<head>
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-  <title>Meteo logger</title>
-</head>
-<body>
-OK Logged
-</body>
-</html>
-<?
+    if (!$connection->query($str)) {
+        header('HTTP/1.1 500 Internal Server Error');
+        exit;    
+    } else {
+        $connection->commit();
+        echo "OK Logged";    
     }
 
-?>