If your still working on this, let me know in a reply.
Generic reply:
the PHP function header() can only be used at the top of a file, eg:
[code]<?php header("Location: http://google.co.uk");echo 'hello';
Would work, it would redirect, but you would not see the 'hello'.
[code<?php echo 'hello'; header("Location: http://google.co.uk");[/code]
Would not work, and should say a error relating to 'header information already sent'. You can't even have a small space, or blank line, that is interpreted as a character.
In short for header() to work, make sure nothing in the HTML comes first, if you do get that error, view the source of the document, and see what comes up before the error does.