{"id":10407,"date":"2020-05-04T16:20:41","date_gmt":"2020-05-04T07:20:41","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=10407"},"modified":"2023-05-27T21:49:44","modified_gmt":"2023-05-27T12:49:44","slug":"%e3%80%90php%e3%80%91%e5%9f%ba%e6%9c%ac%e7%9a%84%e3%81%aa%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e5%87%a6%e7%90%86","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=10407","title":{"rendered":"\u3010PHP\u3011\u57fa\u672c\u7684\u306a\u30d5\u30a9\u30fc\u30e0\u51e6\u7406"},"content":{"rendered":"<h2>\u5165\u529b\u753b\u9762\u306e\u57fa\u672c<\/h2>\n<pre class=\"lang:default decode:true\">&lt;?php\r\n\r\necho $_GET['name'];\r\n\r\n?&gt;\r\n\r\n&lt;!doctype html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;meta charset=\"utf-8\"&gt;\r\n&lt;head&gt;&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;form method=\"POST\" action=\"input2.php\"&gt;\r\n\r\n\u540d\u524d\r\n&lt;input type=\"text\" name=\"your_name\" value=\"&lt;?php echo $_POST['your_name'] ; ?&gt;\"&gt;&lt;\/input&gt;\r\n&lt;br&gt;\r\n\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\r\n&lt;input type=\"email\" name=\"email\" value=\"&lt;?php echo $_POST['email'] ; ?&gt;\"&gt;&lt;\/input&gt;\r\n\r\n&lt;input type=\"submit\" name=\"btn_confirm\" value=\"\u78ba\u8a8d\u3059\u308b\"&gt;&lt;\/input&gt;\r\n\r\n&lt;\/form&gt;\r\n\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n\r\n<\/pre>\n<h3>$_GET['\u30ad\u30fc\u540d']<\/h3>\n<p>\u30d5\u30a9\u30fc\u30e0\u3092GET\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u9001\u4fe1\u3057\u305f\u5834\u5408\u306b<span style=\"color: #ff0000;\"><strong>\u30b9\u30fc\u30d1\u30fc\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570<\/strong><strong>\u3092\u683c\u7d0d\u3059\u308b\u9023\u60f3\u914d\u5217<\/strong><\/span>\u3092\u53d6\u5f97\u3059\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002\u4e0a\u306e\u4f8b\u3067\u306fname(\u30c6\u30ad\u30b9\u30c8\u306e\u5165\u529b\u30dc\u30c3\u30af\u30b9\u306b\u5165\u529b\u3055\u308c\u305f\u5024)\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4>key<\/h4>\n<p>input\u8981\u7d20\u306ename\u5c5e\u6027\u3067\u3059\u3002<\/p>\n<h4>name<\/h4>\n<p>input\u8981\u7d20\u306evalue\u5c5e\u6027\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>$_POST['\u30ad\u30fc\u540d']<\/h3>\n<p>\u30d5\u30a9\u30fc\u30e0\u3092GET\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u9001\u4fe1\u3057\u305f\u5834\u5408\u306b<span style=\"color: #ff0000;\"><strong>\u30b9\u30fc\u30d1\u30fc\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570<\/strong><strong>\u3092\u683c\u7d0d\u3059\u308b\u9023\u60f3\u914d\u5217<\/strong><\/span>\u3092\u53d6\u5f97\u3059\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002POST\u306e\u5834\u5408\u306f\u4e2d\u8eab\u3092\u5916\u90e8\u304b\u3089\u898b\u3048\u308b\u4e8b\u304c\u3067\u304d\u306a\u3044\u306e\u3067\u3053\u3061\u3089\u3092\u4f7f\u7528\u3059\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>\u78ba\u8a8d\u753b\u9762\u306e\u57fa\u672c<\/h2>\n<pre class=\"lang:default decode:true \">&lt;form method=\"POST\" action=\"input2.php\"&gt;\r\n\r\n\u540d\u524d\r\n&lt;?php echo $_POST['your_name'] ; ?&gt;\r\n&lt;br&gt;\r\n\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\r\n&lt;?php echo $_POST['email'] ; ?&gt;\r\n\r\n&lt;input type=\"submit\" name=\"back\" value=\"\u623b\u308b\"&gt;&lt;\/input&gt;\r\n&lt;input type=\"submit\" name=\"btn_submit\" value=\"\u9001\u4fe1\u3059\u308b\"&gt;&lt;\/input&gt;\r\n&lt;input type=\"hidden\" name=\"your_name\" value=\"&lt;?php echo $_POST['your_name'] ; ?&gt;\"&gt;\r\n&lt;input type=\"hidden\" name=\"email\" value=\"&lt;?php echo $_POST['email'] ; ?&gt;\"&gt;\r\n\r\n&lt;\/form&gt;<\/pre>\n<h3>&lt;input type=\"hidden\" \u301c&gt;<\/h3>\n<p>\u30d5\u30a9\u30fc\u30e0\u306f\u4e00\u5ea6\u9001\u4fe1\u3057\u3066\u3057\u307e\u3046\u3068(GET\u3082POST\u3082\u3044\u305a\u308c\u3082)\u4fdd\u6301\u3057\u3066\u3044\u308b\u30c7\u30fc\u30bf\u304c\u6d88\u3048\u3066\u3057\u307e\u3044\u307e\u3059\u3002<span style=\"color: #ff0000;\"><strong>hidden\u3092\u4f7f\u3048\u3070\u30d5\u30a9\u30fc\u30e0\u9593\u3067\u30c7\u30fc\u30bf\u3092\u5f15\u304d\u7d99\u3050\u4e8b\u304c\u53ef\u80fd<\/strong><\/span>\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5165\u529b\u753b\u9762\u306e\u57fa\u672c &lt;?php echo $_GET['name']; ?&gt; &lt;!doctype html&gt; &lt;html lang=\"ja\"&gt; &lt;meta charset=\"utf- [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/10407"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10407"}],"version-history":[{"count":8,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/10407\/revisions"}],"predecessor-version":[{"id":20409,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/10407\/revisions\/20409"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10407"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}