Changed search method to post, and handled non-form submissions