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?
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.