In order to do a PHP redirect, the PHP code has to be at the top of your page, before anything else gets sent to the browser. The redirect to the destination site happens at that point, so any code that follows further down the page would never get executed.