That code looks like it will correctly forward to the submit_thanks.php page if there are no other redirects on the page. Can you send me the entire page and double check that you uploaded the page to the server?