post 방식으로 넘기는 방법
function submit_check() {
var frm = document.check_form;
if(frm.q1_y[0].checked == false && frm.q1_y[1].checked == false) {
alert(" 설문 1번 사항이 누락 되었습니다. ");
frm.q1_y[0].focus();
return false;
}
window.open("", "popup_name", "width=300px, height=150px, left=100px, top=100px");
frm.target = "popup_name";
frm.method = "post";
frm.action = "popup.php";
frm.submit();
}
</script>
<form name="check_form">
html 관련 input 받기
<a href="#" onclick="submit_check();"><input type="button" value="POST로팝으로값넘기기"></a>
</form>
================== popup.php ====================
<?
print_r($_POST);
?>
이렇게 하면 post로 값이 넘어온것 임을 알수 있음.