Rewriting to a different page based on existence of query string?

It seems the solution I needed was to add this snippet of code to my custom template file for the form page.

$pmc = $_GET['pmc'];
if($pmc == false){
    header('Location: ' . get_bloginfo('url') );
}