I played with it a bit more but no luck. This is the entire thing - one script to perform all duties.
<html><head>
<title>Simple Text Box Test</title>
</head>
<body>
<FORM NAME="form1" ID="form1" METHOD="POST" ACTION="simple.php">
<INPUT Type='Text' Name="i1Text" ID="i1Text" Value="Default">
<INPUT Type="Submit" Name="Submit1" Value="Read the Text">
</FORM>
<?PHP
if (!empty($_POST)) {
print "not empty<br>";
}
if (isset($_POST['Submit1'])) {
$PostText=$_POST['ilText'];
print "PostText: $PostText";
$RefText=$i1Text;
print "RefText: $RefText";
if (!empty($_POST['ilText'])) {
$PostText = $_POST['ilText'];
print "New Post: $PostText";
}
else {
print "<br>Error";
}
}
?>
</body></html>
I've stared at this thing long enough that anything obvious is now invisible. I expected to be having fun reading SQL and building arrays and I'm stuck on reading input from the screen. Ah well, maybe muddy waters, let stand, will become clear in the morning.