$(function(){ /** * 確認画面へ */ $("#go_confirm").click(function(){ var data_item = $("#contact_form").serialize(); $.post("contact.php", data_item, function(text){ if (text == "error") { location.href = "index.php"; } else { location.href = "confirm.php"; } }); }); /** * リセット */ $("#go_reset").click(function(){ $.post("contact.php", { mode: "go_cancel" },function(){ location.href = "index.php"; }); }); /** * 戻る */ $("#go_back").click(function(){ location.href = "index.php"; }); /** * 送信&完了ページ表示 */ $("#go_thanks").click(function(){ $.post("contact.php", { mode: "go_thanks" }, function(text){ if (text != "") { alert("このメッセージが表示された場合は、内容をお知らせください\n" + text); return; } location.href = "thanks.php"; }); }); }); function get_email() { var emailriddlerarray=[105,110,102,111,64,99,104,117,107,97,45,102,117,107,117,105,46,106,112] var encryptedemail_id29='' for (var i=0; i < emailriddlerarray.length; i++) encryptedemail_id29+=String.fromCharCode(emailriddlerarray[i]) return encryptedemail_id29; }