most likely a php error is occurring that is preventing the redirect.
add the following code at line 1 to turn error reporting on for troubleshooting:
<?php
error_reporting(E_ALL):
ini_set('display_errors','on');
?>
please post back any errors after testing and a copy of your page in a zip archive.