I'm not sure why your page would not be forwarding, but if you go to line 52 and hardcode the page to forward to like this, it should forward correctly:
header("Location: submit_thanks.php");
If the page is still not forwarding correctly, then it would seem the updates aren't making it onto the server.