adding GET variables to a header() location in a page template

WordPress has API functions for doing both of these things- wp_redirect and add_query_arg.