본문 바로가기

폼값 두곳으로 전송하기

반응형
<form name=f method=post>
<input type="hidden" name=name value="">
<input type=button value="전송" onclick="send()">
</form>

<script language=javascript>
function send()
{
  var f = document.f;
  f.action = "page1.php";
  f.target = "frame1";
  f.submit();

  f.action = "page2.php";
  f.target = "frame2";
  f.submit();
}
</script>

<iframe id=frame1 name=frame1></iframe>
<iframe id=frame2 name=frame2></iframe>

 

반응형

댓글


Copyright ⓒ SmartWeb All rights reserved.