If your second page, the one that does the processing, prints out a thank you, there are only a couple options. Either a meta tag in your html, or javascript.
If your second page just processed the passed info and then sent you somewhere else you could use php. The header() function will redirect as long as you don't print ANYTHING back to the page, or pass any header information first.