Update: This is NOT a duplicate of How do I send a POST request with PHP?. The solutions there don\'t work for me, they just output the result of the request, I don\'t w
you are only can post the values at the time of the form submission
action = "path/filename.php";
in this form you can post the form values.
if you want to redirect the file at the time you can able to pass the values via the URL
header('Location: url/filename.php?param1= ');
try this for a local file values which you want to post.
first you need to assign the values from the form, then you relocate header with the variables. that's may be the right solution from my side. thank you.