채택완료
페이지 로딩하면서 iframe 에 post값슬 넘겨주고싶습니다 소스짜봤는데 잘안되서요
페이지 로딩하면 iframe 에 post값슬 넘겨주고싶습니다 소스짜봤는데 잘안되서요
밑의 로딩되면
target.php 로 post방식으로 act=19872 로넘기고싶습니다
그런데 안되더라고요 ㅜㅜ
소스 수정을 어떻게하면될까요?
Copy
<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개 / 댓글 1개
채택된 답변
+20 포인트
eyekiss
2018-06-21 (목) 01:29:12
Copy
<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>
답변에 대한 댓글 1개
eyekiss
2018-06-21 (목) 12:13:41
2018-06-21 (목) 07:55:09
eyekiss 님 도움주셔 감사합니다^^
답변을 작성하려면 로그인이 필요합니다.
이 부분 수정하세요~^^