{"id":1407,"date":"2023-07-17T17:07:17","date_gmt":"2023-07-17T10:07:17","guid":{"rendered":"https:\/\/pmh.ac.th\/?page_id=1407"},"modified":"2023-07-17T21:11:28","modified_gmt":"2023-07-17T14:11:28","slug":"%e0%b8%8a%e0%b9%88%e0%b8%ad%e0%b8%87%e0%b8%97%e0%b8%b2%e0%b8%87%e0%b9%81%e0%b8%88%e0%b9%89%e0%b8%87%e0%b9%80%e0%b8%a3%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%87%e0%b8%a3%e0%b9%89%e0%b8%ad%e0%b8%87%e0%b9%80","status":"publish","type":"page","link":"https:\/\/pmh.ac.th\/?page_id=1407","title":{"rendered":"\u0e0a\u0e48\u0e2d\u0e07\u0e17\u0e32\u0e07\u0e41\u0e08\u0e49\u0e07\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e23\u0e49\u0e2d\u0e07\u0e40\u0e23\u0e35\u0e22\u0e19\u0e01\u0e32\u0e23\u0e17\u0e38\u0e08\u0e23\u0e34\u0e15\u0e41\u0e25\u0e30\u0e1b\u0e23\u0e30\u0e1e\u0e24\u0e15\u0e34\u0e21\u0e34\u0e0a\u0e2d\u0e1a"},"content":{"rendered":"\n<meta charset=\"UTF-8\">\n    <link rel=\"stylesheet\" href=\"https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/4.0.0\/css\/bootstrap.min.css\" integrity=\"sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW\/dAiS6JXm\" crossorigin=\"anonymous\">\n    <form method=\"post\" autocomplete=\"off\" name=\"google-sheet\">\n        <div class=\"order-2 p-3\">\n            <label>\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e23\u0e49\u0e2d\u0e07\u0e40\u0e23\u0e35\u0e22\u0e19<\/label>\n            <input type=\"text\" class=\"form-control\" placeholder=\"\u0e23\u0e30\u0e1a\u0e38 \u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e23\u0e49\u0e2d\u0e07\u0e40\u0e23\u0e35\u0e22\u0e19\" name=\"name\" required=\"\">\n            <label>\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14<\/label>\n            <textarea class=\"form-control\" name=\"text\" rows=\"3\" required=\"\"><\/textarea>\n            <div class=\"row\">\n                <div class=\"col\">\n                    <label>\u0e0a\u0e37\u0e48\u0e2d<\/label>\n                    <input type=\"text\" class=\"form-control\" id=\"StudentName\" placeholder=\"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e01\u0e23\u0e2d\u0e01\u0e0a\u0e37\u0e48\u0e2d\" name=\"name1\" required=\"\">\n                    <label>\u0e40\u0e1a\u0e2d\u0e23\u0e4c\u0e42\u0e17\u0e23<\/label>\n                    <input type=\"text\" class=\"form-control\" placeholder=\"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e23\u0e30\u0e1a\u0e38\u0e40\u0e1a\u0e2d\u0e23\u0e4c\u0e42\u0e17\u0e23\" maxlength=\"10\" name=\"tel\" required=\"\">\n                <\/div>\n\n                <div class=\"col\">\n                    <label>\u0e19\u0e32\u0e21\u0e2a\u0e01\u0e38\u0e25<\/label>\n                    <input type=\"text\" class=\"form-control\" placeholder=\"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e01\u0e23\u0e2d\u0e01\u0e19\u0e32\u0e21\u0e2a\u0e01\u0e38\u0e25\" name=\"lastname\" required=\"\">\n                    <label>Email<\/label>\n                    <input type=\"text\" class=\"form-control\" placeholder=\"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e01\u0e23\u0e2d\u0e01 E-mail \u0e02\u0e2d\u0e07\u0e17\u0e48\u0e32\u0e19\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e48\u0e2d\" name=\"email\" required=\"\">\n                <\/div>\n            <\/div>\n        <\/div>\n\n        <div align=\"center\">\n            <button type=\"submit\" class=\"btn btn-primary btn-lg\" value=\"Upload\">\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25<\/button>\n        <\/div>\n    <\/form>\n\n    <script>\n        const scriptURL = 'https:\/\/script.google.com\/macros\/s\/AKfycbynFHHSA2jK5uIX1VlgVudmaSeWxGdGBVBNZlMYxY_kC8qItDWao7hk1yrE7-Z-Abli\/exec'\n        const form = document.forms['google-sheet']\n\n        form.addEventListener('submit', e => {\n            e.preventDefault()\n            fetch(scriptURL, { method: 'POST', body: new FormData(form)})\n            .then(response => alert(\"\u0e01\u0e32\u0e23\u0e41\u0e08\u0e49\u0e07\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e23\u0e32\u0e27\u0e2d\u0e31\u0e19\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e17\u0e47\u0e08\u0e2b\u0e23\u0e37\u0e2d\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e01\u0e25\u0e31\u0e48\u0e19\u0e41\u0e01\u0e25\u0e49\u0e07\u0e1c\u0e39\u0e49\u0e2d\u0e37\u0e48\u0e19\" + '\\n' + \"\u0e21\u0e35\u0e04\u0e27\u0e32\u0e21\u0e1c\u0e34\u0e14\u0e15\u0e32\u0e21\u0e01\u0e0f\u0e2b\u0e21\u0e32\u0e22\"))\n            .catch(error => console.error('Error!', error.message))\n        })\n        <\/script>\n\n        <script src=\"https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/4.1.1\/js\/bootstrap.min.js\"><\/script>\n        <script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jquery\/3.2.1\/jquery.min.js\"><\/script>\n","protected":false},"excerpt":{"rendered":"<p>\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e23\u0e49\u0e2d\u0e07\u0e40\u0e23\u0e35\u0e22\u0e19 \u0e02\u0e49\u0e2d\u0e04<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/pmh.ac.th\/index.php?rest_route=\/wp\/v2\/pages\/1407"}],"collection":[{"href":"https:\/\/pmh.ac.th\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pmh.ac.th\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pmh.ac.th\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pmh.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1407"}],"version-history":[{"count":3,"href":"https:\/\/pmh.ac.th\/index.php?rest_route=\/wp\/v2\/pages\/1407\/revisions"}],"predecessor-version":[{"id":1435,"href":"https:\/\/pmh.ac.th\/index.php?rest_route=\/wp\/v2\/pages\/1407\/revisions\/1435"}],"wp:attachment":[{"href":"https:\/\/pmh.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}