[PHP-users 32054] Re: フォーム結果をPOSTで受け取ってポップアップに表示

sawada_rerere001 @ yahoo.co.jp sawada_rerere001 @ yahoo.co.jp
2007年 4月 28日 (土) 20:44:56 JST


さわだです。

JAVASCRIPT部分のみですが、以下でどうでしょう。
ウインドウを開いて、そのウインドウにsubmitしてます。
FIREFOX1.5で確認しました。

<script type="text/javascript">
function popup_window() {
  wobj = window.open("", "choice","scrollbars=yes,width=451,height=380");
  document.vote_form.submit();
  wobj.focus();
  return true;
}
</script>

 <form method="post" action="puti_vote/index.php.php" NAME="vote_form" 
target="choice">
<input name="vote_no" type="radio" value="a" />
<input name="vote_no" type="radio" value="b" />
<input name="vote_no" type="radio" value="c" />
<input type="hidden" name="vote_vol_no" value="1">
<a href="javascript:;" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('vote','','image/choice_vote_over.gif',1)">
<img src="image/choice_vote.gif" alt="投票ボタン" width="51" height="23" 
onclick="popup_window();"/>


--------------------------------------
Big Chance to Win 50,000 Yahoo! Points!
http://pr.mail.yahoo.co.jp/nlcp/



PHP-users メーリングリストの案内