在打开新窗口后重定向
$url='<script>window.open("reports/loan_receipts.php?
loan_id='.$sched_id.'&receipt='.$payment_receipt.'", "width= 700,height=
500,toolbar= no,location= no,directories= 0,status= no,menuBar=
no,scrollBars= no,resizable= yes,left= 400,top= 150,screenX= 400,screenY=
150")</script>';
echo $url;
header('location:'.$_SERVER['HTTP_REFERER']);
在打开新窗口后重定向,但它不执行重定向,但会打开一个新窗口