Redirecting to another URL in PHP requires passing the Location header and exiting thereafter:

Though this method does work, I find it rather unclean. So, I prefer specifying the HTTP status code and also returning HTML/JavaScript for redirection. The HTML can be quite using when the page client is on a connection with very limited bandwidth.

About Gugulethu Ncube

IT enthusiast getting things done.