示例 Iframe:http: //goo.gl/25ecS index.php
<?php
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
?>
<!DOCTYPE html>
<html>
<head>
<title>EXAMPLE</title>
</head>
<body>
<iframe id="foob" width="100%" height="550" frameborder="0" marginheight="0" marginwidth="0" scrolling="yes" onLoad="window.parent.scroll(0,0);" src="http://www.xxxxx.com/buildyourown/Results/Results_xsl.aspx?aff=&incdirect=1&boardType=&rooms=1&rating=2&r3c_ages=2%2C+2%2C+2%2C+2&r1a=2&r2c=0&r2i_ages=0%2C+0%2C+0%2C+0&r3i=0&airportto=LCA&r1i=0&r1c=0&r1i_ages=0%2C+0%2C+0%2C+0&_stage=search&locationset=&populardestinations=3100&r2a=2&r2c_ages=2%2C+2%2C+2%2C+2&r3c=0&locationto=3100&aclocationto=&flexibility=3&r1c_ages=2%2C+2%2C+2%2C+2&r3a=2&r3i_ages=0%2C+0%2C+0%2C+0&airportfrom=LON&airportfromfreetext=&r2i=0&spechotelname=&freetext=-+type+your+destination+-&numadults=2&numchildren=0&numinfants=0&_searchrandom=711211764-20399-68269&search_type=Flight_Hotel_Transfer&startdate_d=19&startdate_m=4&startdate_y=2013&enddate_d=26&enddate_m=4&enddate_y=2013&startdate=10+June+2013&enddate=17+June+2013&transport=transfer" /></iframe>
</body>
</html>
iframe 正在使用 ff 或 chrome,但 Internet expoleer 阻止了 cookie。我不知道如何解决这个问题。我将此代码( header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'); )放在我的页面顶部,但仍然不起作用。当我点击购物篮时,没有任何购物篮。