・JavaScriptで既存のフォームに項目を追加生成して送信
・JavaScriptでフォームを新規に生成して送信
var send_form = document.form_brs2; var fld1 = document.createElement("input"); fld1.name = "JSdata1"; fld1.type = "hidden"; fld1.value = document.form_brs.data1.value; send_form.appendChild(fld1); (省略) send_form.submit();
var send_form = document.createElement("form"); document.body.appendChild(send_form); send_form.name = "fsend"; //省略可 send_form.action = "get_post.cgi"; send_form.method = "POST"; //or "GET" (省略)
var send_form = document.createElement("form"); document.body.appendChild(send_form); with(send_form) { name = "fsend"; //省略可 action = "get_post.cgi"; method = "POST"; //or "GET" } (省略)