2012-06-27 2 views
0

iframe 컨테이너 내부에 페이지가 채워진 iframe에서 결과를 어떻게 반환 할 수 있습니까?iframe의 Google

<form action="what.php" method="POST"> 
<center><input type="text" name="search"/><br/> 
<input type="submit" value="Search google" name="submit"> 
</center></form> 
<?php if (isset($_POST['submit'])) 
{ 
$a = '<iframe width="500" height="400" src="http://www.google.com/search?q='.$_POST['search'].'"></iframe>'; 
echo htmlentities($a); 
echo $a; 
} 
?> 

과부하 : 자동 내가 바보 같은 질문

+0

나는 당신의 질문을 이해하지 않습니다. iFrame 외부에서 Google 검색 결과를 표시 하시겠습니까? –

+0

읽어야 [http://stackoverflow.com/questions/8700636/how-to-show-google-com-in-an-iframe][1] [1] : HTTP//stackoverflow.com/questions/8700636/how-to-show-google-com-in-an-iframe – Nuwan

+0

가능한 중복 [iframe 내부에서 Google 링크를 여는 방법?] (http://stackoverflow.com/questions/7800370)/how-to-open-google-links-inside-iframe) – TJHeuvel

답변

1

을 해달라고 부탁하면, 내가 내 iframe 대응에 구글 검색을 통해 운이 느끼고의 결과를 표시하기 위해 무엇을 얻을 수 이 :) 나의 무지를 용서 근무하지 않았다 응답 헤더에 "X-Frame-Options : SAMEORIGIN"이 표시됩니다. 체크 아웃이 Mozilla's documentation

Some other similar post

관련 문제