HTML

쿼리를 두개의 페이지에 보내기

고요한하늘... 2007. 6. 7. 10:52

 

//자바스크립트 작성

<head>

<script type=\"text/javascript\">

function checkSubmit(q)
{
    document.lfrm.q.value = q;
    document.rfrm.q.value = q;
    document.lfrm.submit();
    document.rfrm.submit();

}

</script>
</head>

 

//폼 작성

//폼1 - lfrm
<form name="lfrm" method="get" action="xxx.cgi" target="left">
<input type="hidden" name="w" value="tot">
<input type="hidden" name="q" value="">
</form>

//폼2 - rfrm
<form name="rfrm" method="get" action="yyy.cgi" target="right">
<input type="hidden" name="w" value="tot">
<input type="hidden" name="q" value="">
</form>


<table cellpadding='0' cellspacing='2' border=0 width=100% valign=center>
<tr  bgcolor="#FFFFC1" align=center>

 

//URL 보내기
<a href="javascript:checkSubmit('해남왕새우');"><font color="CC6600"><b>해남왕새우</b></font></a><br>

</tr>

</html>

'HTML' 카테고리의 다른 글

file download  (0) 2013.08.28
post 방식  (0) 2008.04.18
post 방식으로 fcgi 호출  (0) 2008.04.18
색상 테이블( color table)  (0) 2007.04.19
checkbox(체크박스)  (0) 2007.04.11