Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在执行了一些查询后,我正在使用以下代码刷新页面:
echo '<META HTTP-EQUIV=Refresh //CONTENT="0; URL=editeventstaff.php?id=".$_POST[id]."">';
当前 url 包含从前一个页面传递的“id”变量。因此,当页面刷新时,url 需要包含这个变量。
id 存储在$_POST[id].
$_POST[id]
我怎样才能使这项工作?目前页面正在刷新editeventstaff.php?id=(没有 id 值)。
editeventstaff.php?id=
谢谢。
Give this a try
echo '<META HTTP-EQUIV=Refresh //CONTENT="0; URL=editeventstaff.php?id="'.$_POST[id].'">';