データ受信テスト4(Shift-JIS)


データを送信

escape : / encodeURI :
JavaScriptによる送信: (1)上記フォームを送信 (2)仮想フォームを送信

受信した文字列の表示

URLを使って受信したデータ

上記データのデコード unescape(get_text)

スクリプトの内容

(1)上記フォームを送信

document.form_sending.submit();

(2)仮想フォームを送信

var send_form = document.createElement("form");
document.body.appendChild(send_form);
send_form.name = "fsend";
send_form.action = "form_send_JIS4.html";
send_form.method = "get";
send_form.enctype = "text/plain";
send_form.style.visibility = "hidden";

var fin1 = document.createElement("input");
send_form.appendChild(fin1);
fin1.name = "virtual1";
fin1.type = "text";
fin1.value = document.form_sending.textfield1.value;

var fin2 = document.createElement("input");
send_form.appendChild(fin2);
fin2.name = "virtual2";
fin2.type = "text";
fin2.value = document.form_sending.textfield2.value;

send_form.submit();


閉じる