If this is file_1.php
$_POST["test_message"]
is blank in file2.php because you have not actually posted anything to that script. The $_POST
array is populated by POSTing form data, you could populate $_GET
by appending a GET variable to your header redirect or store data in $_SESSION
if you need data persistence between pages.