The more, the merrier! Login and vote now.
By skoop
via php.dzone.com
Published: Mar 05 2008 / 16:32
After form submission or a page redirect is triggered, it's commonplace to redirect the user to a different page or to the same page, formatted in a different way. Usually, you'd complete this by coding: header('Location: destination.php'); exit(); This is a completely acceptable way to code your pages, but I prefer to use a redirect function instead. Why? It's much more readable, and quite honestly, I'm tired of writing the header('Location: …') code.
Comments
bosmeeuw replied ago:
Voted down because I don't think a trivial 4 line PHP function warrants a blog post.
Voters For This Link (8)
Voters Against This Link (1)