페이지 로딩하면서 iframe 에 post값슬 넘겨주고싶습니다 소스짜봤는데 잘안되서요

페이지 로딩하면서 iframe 에 post값슬 넘겨주고싶습니다 소스짜봤는데 잘안되서요

QA

페이지 로딩하면서 iframe 에 post값슬 넘겨주고싶습니다 소스짜봤는데 잘안되서요

답변 2

본문

 

페이지 로딩하면 iframe 에 post값슬 넘겨주고싶습니다 소스짜봤는데 잘안되서요

밑의 로딩되면

 

target.php 로 post방식으로 act=19872 로넘기고싶습니다

 

그런데 안되더라고요 ㅜㅜ

소스 수정을 어떻게하면될까요?

 

 

<html> 
<body> 
<table> 
 <tr> 
  <td height="220" colspan="2" valign="top" width="262"> 
      <p align="center"> 
        <iframe  src="target.php" name="aList" width="268" height="100%"> </iframe> 
      </p> 
  </td> 
 </tr> 
</table> 
<script>document.formAgent.submit();</script>
<form name="formAgent" method="POST" target="aList"> 
      <input type=hidden name="act" value=19872> 
</form> 
  
<script language="JavaScript"> 
 document.formagent.target="aList"; 
 document.formagent.load(); 
</script> 

이 질문에 댓글 쓰기 :

답변 2


<html>
<body>
<table>
<tr>
<td height="220" colspan="2" valign="top" width="262">
<p align="center">
<iframe src="target.php" name="aList" width="268" height="100%"> </iframe>
</p>
</td>
</tr>
</table>
<form name="formAgent" method="POST" target="aList" action="test2.php">
<input type=hidden name="act" value="19872">
</form>
<script>
document.formAgent.submit();
</script>
답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
filter #post ×
전체 57
© SIRSOFT
현재 페이지 제일 처음으로