当我单击下一步按钮时,单击保存按钮并将我的页面重定向到next.php时,我想将页面重定向到save.php。重定向PHP页面
<form name="crtext" method="post" action="o_crt_ext.php" enctype="multipart/form-data">
<input type="submit" name="save" value="save" />
<input type="submit" name="next" value="next" />
</form>
o_crt_ext.php
<?php
if(isset($_POST['save']));
{
header("location:save.php");
}
if(isset($_POST['next']));
{
header("location:next.php");
}
?>
不要忘记在发送位置标题后调用'exit'或者您可能会收到不需要的行为。 –