Captures query string into form