make the variable holding the PSGI envrionment global; send back the content of the query field so it can be displayed in the result page as well