<html>
<head>
<meta charset="UTF-8">
<title>Dialog</title>
<script>
function postForm(value)
{ var form = document.createElement('form');
var request = document.createElement('input');
form.method = 'POST';
form.action = 'http://maedakobe.rw.xsi.jp/php/post_data.php';
request.type = 'hidden'; //入力フォームが表示されないように
request.name = 'data';
request.value = value;
form.appendChild(request);
document.body.appendChild(form);
form.submit();
}
</script>
</head>
<body>
<h3>Post Massage Sendo</h3>
<script>
postForm('POST Test hello world!')
</script>
</body>
</html>
|