refined extracting and posting form values