Index: trunk/ippMonitor/raw/ipp.php
===================================================================
--- trunk/ippMonitor/raw/ipp.php	(revision 9008)
+++ trunk/ippMonitor/raw/ipp.php	(revision 9009)
@@ -19,5 +19,5 @@
   // connect to the database
   require_once('DB.php');
-#  $db = DB::connect("mysql://ipp:ipp@localhost/ipp");
+  // $db = DB::connect("mysql://ipp:ipp@localhost/ipp");
   $db = DB::connect("mysql://ipp:ipp@localhost/detrend");
   if (DB::iserror($db)) {
@@ -81,4 +81,9 @@
     $ID['menu'] = $_GET[menu];
     // echo "using GET: ", $ID['pass'], $ID['proj'];
+
+    // echo "GET list<br>\n";
+    // foreach ($_GET as $key => $value) {
+    // echo "$key : $value<br>\n";
+    // }
   }
   if ($_SERVER[REQUEST_METHOD] == 'POST') { 
@@ -87,4 +92,9 @@
     $ID['menu'] = $_POST[menu];
     // echo "using POST: ", $ID['pass'], $ID['proj'];
+
+    // echo "POST list<br>\n";
+    // foreach ($_POST as $key => $value) {
+    // echo "$key : $value<br>\n";
+    // }
   }
 
@@ -178,10 +188,10 @@
 
 function check_restrict ($key, $where) {
-  // echo "key: $key<br>\n";
+  $htmlkey = preg_replace ('|\.|', '_', $key);
   if ($_SERVER[REQUEST_METHOD] == 'GET') { 
-    $value = $_GET[$key]; 
+    $value = $_GET[$htmlkey]; 
     // echo "using GET<br>\n";
   } else {
-    $value = $_POST[$key];
+    $value = $_POST[$htmlkey];
     // echo "using POST<br>\n";
   }
@@ -199,14 +209,16 @@
 }
 
-function write_query_row ($key) {
-  $value = $_POST[$key];
+function write_query_row ($key, $width) {
+  $htmlkey = preg_replace ('|\.|', '_', $key);
+  $value = $_POST[$htmlkey];
   if (($_SERVER[REQUEST_METHOD] == 'POST') && $value) { 
-    echo "<td class=\"list\"> <input type=\"text\" name=\"$key\" value=\"$value\"> </td>\n";
+    echo "<td class=\"list\"> <input type=\"text\" name=\"$key\" size=\"$width\" value=\"$value\"> </td>\n";
   } else {
-    echo "<td class=\"list\"> <input type=\"text\" name=\"$key\"> </td>\n";
+    echo "<td class=\"list\"> <input type=\"text\" name=\"$key\" size=\"$width\"> </td>\n";
   }
 }
 
 // expect image supplied with key=name
+// this function should define matching hidden inputs in the form
 function insert_image ($key) {
 
