您可以使用该函数http_build_query()从中生成GET查询字符串$_POST.
然后将其附加到重定向URL并header()与位置一起使用以进行重定向,例如:
$newURL = 'http://example.com/script.php?' . http_build_query($_POST);
header("Location: {$newURL}");
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1429 次 |
| 最近记录: |