它必須結合服務器和客戶端代碼完成。喜歡的東西...
PageA.php
<form action="PageB.php" method="post">
<input name="field1">
<input name="field2">
<input type="hidden" name="PageAToPageB" value="SomeString">
</form>
PageB.php
<?php
if ($_POST["PageAToPageB"] == "SomeString")
{
?>
<form id="PageAToPageBForm" target="iFrameName" method="post">
<input name="field1" value="<?= $_POST['field1'] ?>">
<input name="field2" value="<?= $_POST['field2'] ?>">
</form>
<script type="text/javascript">
$(function(){
$("#PageAToPageBForm").submit();
});
</script>
<?php
}
?>
工作,所以我複製的形式。謝啦 – 2012-03-22 16:32:54