theres probably a php error occurring that is preventing the redirect form working
add the following code to line 1 of the product_details.php page to turn error reporting on:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
once we know what the error is, we will be able to troubleshoot the cause.