The form fields are part of an array (call it form for example).
Name and value are the same and the form script posts back to itself for processing.
If any errors, the script drops through to the form, which has all entered values in palce by virtue of the form filrd value equal to it's name. The form fields don't have to be in a array, but in this case, the array is what pg_fetcharray returned and what is used to update the database. No need to read database and assign to "other" variables in the form - just use the fetched array directly.
In any event, I end up posting a variable named form[desc] (for example) that I cannot access using $_POST["form[desc]"] when it's submitted (request method IS post).
If I use a form variable that's not in an array (eg desc) then I can access it using $_POST["desc"].
Further, $_POST["form"] does not contain an array, which is what your example suggests.
Frustrating....
Chris