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

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

QA

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

본문

 

페이지 로딩하면 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>
답변을 작성하시기 전에 로그인 해주세요.
전체 57
QA 내용 검색
filter #post ×

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT