Comment on How best to navigate to a PHP page after a form submit?Comments−frankus16yOften you'll have to explicitly call exit() after a call to header("Location: index.html?page=privacy").IIRC it is version- and configuration-dependent.But a redirect is pretty clearly the right way to do this. When you get ready to do SEO-friendly URLs, take a look at mod_rewrite.−jsteeleOP16yThanks for the reply. How does an exit() after header() help? It still causes a discontinuity in an IDE.
Comments
Often you'll have to explicitly call exit() after a call to header("Location: index.html?page=privacy").
IIRC it is version- and configuration-dependent.
But a redirect is pretty clearly the right way to do this. When you get ready to do SEO-friendly URLs, take a look at mod_rewrite.
Thanks for the reply. How does an exit() after header() help? It still causes a discontinuity in an IDE.