The result of the query is formatted as HTML and returned to the client. Socket routines are used to make the communicate with the ph server. Users doing GET, synthesize form data. Decode form data to make query. Query PH server for its field descriptions and build global list.
First line is skipped for 'full' lists.
Save context, interpet command and restore updated context. Most substitutions only recongined inside of loops. Interpret contents for form data string and construct ph query command. Append return fields.