www-thermferm/index.php

changeset 155
0d86f3c0a07b
parent 134
f05601490415
child 168
1288dbf0f9b5
--- a/www-thermferm/index.php	Wed Jul 30 19:39:50 2014 +0200
+++ b/www-thermferm/index.php	Wed Jul 30 22:57:48 2014 +0200
@@ -26,9 +26,21 @@
  */
 $my_style = 'ui-redmond';
 
+require_once('utilities.php');
 require_once('liveview.php');
 
 
+
+/*
+ * Handle the post events
+ */
+if (isset($_POST['mode']) && isset($_POST['UUID'])) {
+    send_cmd('UNIT '.$_POST['UUID']);
+    send_cmd('MODE '.$_POST['mode']);
+}
+
+
+
 $outstr  = '<!DOCTYPE html>'.PHP_EOL;
 $outstr .= '<html>'.PHP_EOL;
 $outstr .= ' <head>'.PHP_EOL;
@@ -66,3 +78,8 @@
 
 echo $outstr;
 
+echo "_GET ";
+print_r ($_GET);
+echo "<br> _POST ";
+print_r ($_POST);
+

mercurial