connect_error) { die("Connection failed: " . $conn->connect_error); } // Only accept POSTed data $data1=$_POST['textdata']; $data2=$_POST['ttime']; $data3 = $_POST['observer']; if (strcmp($data2, "3487")!=0) { // 3487 is the default time. This will only happen if no time // was recorded in the stopwatch. So, if we do not have 3487, // then it is a real time. So save it. // Not clear that this is really needed as graphing is done elsewhere $sql = "INSERT INTO timedata (actor, witness, time) VALUES ('$data1', '$data3', '$data2');"; //echo "$sql
"; $conn->query($sql); } // Tell the browser to load this page instead header("Location: aaa.html", true, 301); ?>