If you need to redirect page and pass $_POST variable (or any other variable) you should use following code:
<?php
header("HTTP/1.0 307 Temporary redirect");
header("Location: http://localhost/test.php");
?>
If you need to redirect page and pass $_POST variable (or any other variable) you should use following code:
<?php
header("HTTP/1.0 307 Temporary redirect");
header("Location: http://localhost/test.php");
?>