「PHP入門」Formの内容をPostでwindow.openを実行する

サンプルコード:
function preview()
{
window.open(",’userfrmpost’,’width=600,height=400,scrollbars=yes’);
var form = document.nationList;
form.action = 'userNation.php’;
form.target = 'userfrmpost’;
form.method = 'post’;
form.submit();
}
<form name="nationList">

<input type="button" value="Post" onclick="preview()"/>
</form>

PHP

Posted by arkgame