most likely a php error is occurring that is preventing the redirect.
Add the following code to line 1 to turn error reporting on:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
post back the text of any errors that are occurring and copy of your page compressed into a zip archive so I can examine the code.