Most likely there is a php error occurring on the page that is preventing the redirect to the index.php page from functioning.
Add the following at line 1 of your page to turn error reporting on:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
Please post back any errors that you see, an copy of the page and a link where we could see the error occurring