I fixed up the script, and now have this code. I still can't get it to update the info in the database. The var dump shows the changes that were made after the form is submitted, but the database still remains the same.
<?php
echo var_dump($_POST);
$query = "UPDATE workshop subheaderText SET NULL,
*****subheaderText='".$POST['subheaderText']."'
**headerText='".$POST['headerText']."'
page='".$POST['page']."'
*****WHERE subheaderTextID='".$POST['subheaderTextID']."'";
$query2= "SELECT * FROM subheaderText WHERE subheaderTextid=1";
$result2= @($query2);
echo "<form name='subheader' action='$_SERVER[PHP_SELF]' method='POST'>";
while ($row=mysql_fetch_array($result2)){
echo "<input type=text name='subheaderTextID' size='30' value='".$row['subheaderTextID']."'>ID<br>";
echo "<input type=text name='page' size='10' value='".$row['page']."'>page<br>";
echo "<input type=text name='subheaderText' size='30' value='".$row['subheaderText']."'>subheader<br>";
echo "text <textarea name='headerText' cols='50' rows='15' />'".$row['headerText']."'</textarea><br>";
}
echo '<input type="submit" name="submit" value="update" /><br>';
echo '</form><br>';
?>