Sayfadan sayfaya zıplama ile çift post:
Alici1.php
<?php
$veri1 = $_POST["veri1"];
$veri2 = $_POST["veri2"];
rename($veri1,$veri2); //örnek
header("Location: alici2.php?veri1=".$veri1."&veri2=".$veri2)
?>
Alici2.php
<?php
$veri1 = $_POST["veri1"];
$veri2 = $_POST["veri2"];
copy($veri2,$veri1); //örnek
header("Location: verici.php?tamam")
?>
Verici.php
<?php
if(isset($_POST["tamam"])) {
echo "<div>POST gönderildi.</div>";
}
?>
<form action="alici1.php" method="POST">
Veri1: <input name="veri1"><br>
Veri2: <input name="veri2"><br>
<input type="submit" value="postala">
</form>
Ajax (jqeury) ile tek seferde çift gönderim:
Verici.php
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script>
function gonder(a){
$.ajax({
type: 'POST',
url: a+'.php',
data: 'veri1='+$("#veri1").val()+'&veri2='+$("#veri2").val(), 
success:function(e){
alert(a+" - Posta gonderildi.");
}});
}
</script>
Veri1: <input id="veri1"><br>
Veri2: <input id="veri2"><br>
<input type="button" onClick="gonder('alici1');gonder('alici2')" value="postala">