header("Location: thankyou.php");
and change the thankyou.php to another page.
Thanks for the reply Jimmy
I have the code as in your reply I did not change it from the default but I think the problem is that I am using godaddy gdform.php and that is redirecting me to the root index.html page as I wrote in my first post they show you what code to use to redirect but im not sure what to do with it. Here is a link to the godaddy page 512#gdform you have to click on gdform.php to expand its contents.
Thanks