我有包含变量的 php 文件:
$t1 = $_POST['t1'];
$t2 = $_POST['t2'];
我需要将这些变量传递到相应的 html 表单字段中:
<input id="field_1" type="hidden" name="field_1" />
<input id="field_2" type="hidden" name="field_2" />
表单位于与带有变量的 php 文件不同的页面中。它的网址是“form.php”
我想我需要在我的 php 文件中创建 php post 命令,该命令重定向到 url“form.php”并将 $t1 和 $t2 加载到各自的表单字段“field_1”和“field_2”中?
尝试但找不到正确的解决方案..任何想法都赞赏 Brgds, Raivis