リンクを使わずに自動的にJavascriptからPOSTでパラメータを渡す方法を追加しました。
・サンプルページ:test.html
<script language="javascript">
function doSubmit(){
document.lucenForm.submit();
}
</script>
<form name="lucenForm" method="post" action="test.php">
<input type="hidden" name="msg" value="post_value" />
</form>
<a href="javascript:doSubmit();">POST send</a>
>>PHPで効率良いシステム構築のお問い合わせ<<
・パラメータが渡された確認ページ:test.php
<?php
echo "POST value = ".$_POST[msg]."<br>";
?>
・簡単な方法
<form name="lucenForm" method="post" action="test.php">
<input type="hidden" name="msg" value="post_value">
</form>
<a href='#' onClick="document.lucenForm.submit();return false">POST send</a>
・自動で行われる方法
<form name="lucenForm" method="post" action="test.php">
<input type="hidden" name="msg" value="post_value">
</form>
<body onload="document.lucenForm.submit();return false">
>>PHPで効率良いシステム構築のお問い合わせ<<