{"id":761,"date":"2025-08-04T15:54:01","date_gmt":"2025-08-04T06:54:01","guid":{"rendered":"https:\/\/nexive.tech\/?p=761"},"modified":"2025-08-04T15:54:02","modified_gmt":"2025-08-04T06:54:02","slug":"%e3%80%90%e3%82%b5%e3%82%af%e3%83%83%e3%81%a8%e8%a7%a3%e8%aa%ac%e3%80%91php-_get%e3%81%a8_post%e3%81%ae%e9%81%95%e3%81%84%e3%81%a8%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/nexive.tech\/?p=761","title":{"rendered":"\u3010\u30b5\u30af\u30c3\u3068\u89e3\u8aac\u3011PHP $_GET\u3068$_POST\u306e\u9055\u3044\u3068\u4f7f\u3044\u65b9"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">1. \u672c\u8a18\u4e8b\u306e\u30dd\u30a4\u30f3\u30c8<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>PHP\u306e\u30b9\u30fc\u30d1\u30fc\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570 $_GET \u3068 $_POST \u306e\u57fa\u672c\u7684\u306a\u9055\u3044\u3092\u89e3\u8aac<\/li>\n\n\n\n<li>\u5229\u7528\u30b7\u30fc\u30f3\u306e\u8a2d\u8a08\u5224\u65ad\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u6ce8\u610f\u70b9\u3092\u660e\u793a<\/li>\n\n\n\n<li>\u5b9f\u884c\u53ef\u80fd\u306a\u30b3\u30fc\u30c9\u4f8b\u4ed8\u304d\u3067\u4f7f\u3044\u65b9\u3092\u89e3\u8aac<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">2. PHP\u306e $_GET \u3068 $_POST \u3068\u306f\uff1f<\/h2>\n\n\n\n<p>PHP\u3067\u306f\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u304b\u3089\u53d7\u3051\u53d6\u3063\u305f\u30c7\u30fc\u30bf\u3092\u6271\u3046\u305f\u3081\u306b\u3001\u3044\u304f\u3064\u304b\u306e\u30b9\u30fc\u30d1\u30fc\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u4e2d\u3067\u3082\u4ee3\u8868\u7684\u306a\u3082\u306e\u304c <code>$_GET<\/code> \u3068 <code>$_POST<\/code> \u3067\u3059\u3002<\/p>\n\n\n\n<p><code>$_GET<\/code> \u306fURL\u306e\u30af\u30a8\u30ea\u6587\u5b57\u5217\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u914d\u5217\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u304c\u30d6\u30e9\u30a6\u30b6\u306e\u30a2\u30c9\u30ec\u30b9\u30d0\u30fc\u306b\u5165\u529b\u3059\u308b\u304b\u3001\u30ea\u30f3\u30af\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u6e21\u3055\u308c\u305f\u5024\u304c\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002\u4e00\u65b9\u3001<code>$_POST<\/code> \u306f\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u306a\u3069\u3067\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u30dc\u30c7\u30a3\u306b\u542b\u307e\u308c\u308b\u30c7\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u308b\u914d\u5217\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u52d9\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u64cd\u4f5c\u306b\u5fdc\u3058\u3066\u60c5\u5831\u3092\u6e21\u3057\u305f\u308a\u3001\u30d5\u30a9\u30fc\u30e0\u30c7\u30fc\u30bf\u3092\u5b89\u5168\u306b\u9001\u4fe1\u3059\u308b\u5834\u9762\u3067\u4f7f\u308f\u308c\u307e\u3059\u3002\u8a2d\u8a08\u4e0a\u3001\u60c5\u5831\u306e\u79d8\u533f\u6027\u3084\u9001\u4fe1\u30b5\u30a4\u30ba\u5236\u9650\u306a\u3069\u3082\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. \u8a73\u7d30\u89e3\u8aac<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">GET\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u5024\u3092\u53d6\u5f97\u3059\u308b\u4f8b<\/h3>\n\n\n\n<p>URL\u306e\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u5024\u3092\u53d6\u5f97\u3059\u308b\u5178\u578b\u7684\u306a\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e\"><span style=\"background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e\">PHP<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/ URL\u4f8b: http:\/\/example.com\/index.php?user=tanaka\n$user = $_GET&#91;'user'&#93;;\necho \"\u30e6\u30fc\u30b6\u30fc\u540d: $user\";\n\/\/ \u51fa\u529b: \u30e6\u30fc\u30b6\u30fc\u540d: tanaka\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/ URL\u4f8b: http:\/\/example.com\/index.php?user=tanaka<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$user<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #9CDCFE\">$_GET<\/span><span style=\"color: #D4D4D4\">&#91;<\/span><span style=\"color: #CE9178\">&#39;user&#39;<\/span><span style=\"color: #D4D4D4\">&#93;;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">echo<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&quot;\u30e6\u30fc\u30b6\u30fc\u540d: <\/span><span style=\"color: #9CDCFE\">$user<\/span><span style=\"color: #CE9178\">&quot;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\">\/\/ \u51fa\u529b: \u30e6\u30fc\u30b6\u30fc\u540d: tanaka<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p>GET\u306fURL\u306b\u5024\u304c\u898b\u3048\u308b\u305f\u3081\u3001\u691c\u7d22\u6761\u4ef6\u3084\u30da\u30fc\u30b8\u756a\u53f7\u306a\u3069\u306e\u975e\u6a5f\u5bc6\u30c7\u30fc\u30bf\u306b\u9069\u3057\u307e\u3059\u3002\u30d6\u30c3\u30af\u30de\u30fc\u30af\u53ef\u80fd\u3068\u3044\u3046\u5229\u70b9\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">POST\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u3092\u53d7\u3051\u53d6\u308b\u4f8b<\/h3>\n\n\n\n<p>\u30d5\u30a9\u30fc\u30e0\u7d4c\u7531\u3067\u9001\u4fe1\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e\"><span style=\"background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e\">PHP<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/ HTML\u30d5\u30a9\u30fc\u30e0\uff08method=\"post\"\uff09\u304b\u3089\u9001\u4fe1\u3055\u308c\u305f\u3068\u4eee\u5b9a\n$name = $_POST&#91;'name'&#93;;\necho \"\u3053\u3093\u306b\u3061\u306f\u3001$name \u3055\u3093\";\n\/\/ \u5165\u529b: name=\u5c71\u7530 -> \u51fa\u529b: \u3053\u3093\u306b\u3061\u306f\u3001\u5c71\u7530 \u3055\u3093\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/ HTML\u30d5\u30a9\u30fc\u30e0\uff08method=&quot;post&quot;\uff09\u304b\u3089\u9001\u4fe1\u3055\u308c\u305f\u3068\u4eee\u5b9a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$name<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #9CDCFE\">$_POST<\/span><span style=\"color: #D4D4D4\">&#91;<\/span><span style=\"color: #CE9178\">&#39;name&#39;<\/span><span style=\"color: #D4D4D4\">&#93;;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">echo<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&quot;\u3053\u3093\u306b\u3061\u306f\u3001<\/span><span style=\"color: #9CDCFE\">$name<\/span><span style=\"color: #CE9178\"> \u3055\u3093&quot;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\">\/\/ \u5165\u529b: name=\u5c71\u7530 -&gt; \u51fa\u529b: \u3053\u3093\u306b\u3061\u306f\u3001\u5c71\u7530 \u3055\u3093<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p>POST\u306fURL\u306b\u5024\u304c\u8868\u793a\u3055\u308c\u305a\u3001\u9001\u4fe1\u30b5\u30a4\u30ba\u3082\u5927\u304d\u3044\u305f\u3081\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3084\u9577\u6587\u30c7\u30fc\u30bf\u306a\u3069\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">GET\u3068POST\u3092\u540c\u6642\u306b\u6271\u3046\u4f8b<\/h3>\n\n\n\n<p>\u7528\u9014\u306b\u5fdc\u3058\u3066GET\u3068POST\u306e\u4e21\u65b9\u3092\u4f7f\u3044\u5206\u3051\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e\"><span style=\"background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e\">PHP<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>$mode = $_GET&#91;'mode'&#93; ?? 'default';\n$id = $_POST&#91;'id'&#93; ?? null;\necho \"\u30e2\u30fc\u30c9: $mode, ID: $id\";\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">$mode<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #9CDCFE\">$_GET<\/span><span style=\"color: #D4D4D4\">&#91;<\/span><span style=\"color: #CE9178\">&#39;mode&#39;<\/span><span style=\"color: #D4D4D4\">&#93; ?? <\/span><span style=\"color: #CE9178\">&#39;default&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$id<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #9CDCFE\">$_POST<\/span><span style=\"color: #D4D4D4\">&#91;<\/span><span style=\"color: #CE9178\">&#39;id&#39;<\/span><span style=\"color: #D4D4D4\">&#93; ?? <\/span><span style=\"color: #569CD6\">null<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">echo<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&quot;\u30e2\u30fc\u30c9: <\/span><span style=\"color: #9CDCFE\">$mode<\/span><span style=\"color: #CE9178\">, ID: <\/span><span style=\"color: #9CDCFE\">$id<\/span><span style=\"color: #CE9178\">&quot;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p><code>??<\/code> \u6f14\u7b97\u5b50\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u5b58\u5728\u3057\u306a\u3044\u30ad\u30fc\u306b\u3088\u308b\u30a8\u30e9\u30fc\u3092\u9632\u304e\u3064\u3064\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">GET\u3068POST\u306e\u9078\u5b9a\u57fa\u6e96<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5171\u6709\u30fb\u4fdd\u5b58\u3057\u305f\u3044 \u2192 GET<\/li>\n\n\n\n<li>\u6a5f\u5bc6\u6027\u306e\u9ad8\u3044\u30c7\u30fc\u30bf\u3084\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1 \u2192 POST<\/li>\n\n\n\n<li>\u51aa\u7b49\u6027\u304c\u5fc5\u8981\u306a\u51e6\u7406\uff08\u518d\u8aad\u307f\u8fbc\u307f\u3067\u526f\u4f5c\u7528\u306a\u3057\uff09\u2192 GET<\/li>\n\n\n\n<li>\u30c7\u30fc\u30bf\u5909\u66f4\u3092\u4f34\u3046\u51e6\u7406\uff08\u767b\u9332\u30fb\u66f4\u65b0\u306a\u3069\uff09\u2192 POST<\/li>\n<\/ul>\n\n\n\n<p>HTTP\u306e\u8a2d\u8a08\u601d\u60f3\u3068\u3057\u3066\u3082\u3001GET\u306f\u300c\u53d6\u5f97\u300d\u3001POST\u306f\u300c\u9001\u4fe1\u30fb\u5909\u66f4\u300d\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4. \u3088\u304f\u3042\u308b\u30df\u30b9\u30fb\u8aa4\u89e3\u30fb\u843d\u3068\u3057\u7a74<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>GET\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u9001\u4fe1<\/strong>\uff1aURL\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u9732\u51fa\u3059\u308b\u305f\u3081\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7684\u306b\u91cd\u5927\u306a\u554f\u984c\u306b\u306a\u308a\u307e\u3059<\/li>\n\n\n\n<li><strong>\u30ad\u30fc\u306e\u5b58\u5728\u30c1\u30a7\u30c3\u30af\u3092\u6020\u308b<\/strong>\uff1a\u672a\u5b9a\u7fa9\u30ad\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u8b66\u544a\u304c\u51fa\u308b\u305f\u3081\u3001<code>isset()<\/code> \u3084 <code>??<\/code> \u3067\u306e\u5bfe\u51e6\u304c\u5fc5\u8981\u3067\u3059<\/li>\n\n\n\n<li><strong>\u30d5\u30a9\u30fc\u30e0\u306emethod\u6307\u5b9a\u30df\u30b9<\/strong>\uff1aHTML\u30d5\u30a9\u30fc\u30e0\u306e <code>method<\/code> \u5c5e\u6027\u304cGET\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u3001POST\u30c7\u30fc\u30bf\u304c\u9001\u3089\u308c\u307e\u305b\u3093<\/li>\n\n\n\n<li><strong>POST\u30b5\u30a4\u30ba\u5236\u9650\u306e\u672a\u78ba\u8a8d<\/strong>\uff1a<code>post_max_size<\/code> \u3084 <code>upload_max_filesize<\/code> \u3092\u8d85\u3048\u308b\u3068\u7a7a\u306e\u914d\u5217\u304c\u8fd4\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059<\/li>\n<\/ul>\n\n\n\n<p>PHP\u306e\u8a2d\u5b9a\u3084Web\u30b5\u30fc\u30d0\u30fc\u306e\u5236\u9650\u3082\u8e0f\u307e\u3048\u3066\u3001\u7528\u9014\u306b\u5fdc\u3058\u305f\u5b89\u5168\u306a\u4f7f\u3044\u65b9\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5. \u307e\u3068\u3081<\/h2>\n\n\n\n<p>PHP\u306e <code>$_GET<\/code> \u3068 <code>$_POST<\/code> \u306f\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u542b\u307e\u308c\u308b\u30c7\u30fc\u30bf\u3092\u6271\u3046\u57fa\u672c\u7684\u306a\u624b\u6bb5\u3067\u3059\u3002<\/p>\n\n\n\n<p>GET\u306fURL\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u901a\u3058\u3066\u975e\u6a5f\u5bc6\u306a\u60c5\u5831\u3092\u3001POST\u306f\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u306a\u3069\u3067\u6a5f\u5bc6\u6027\u306e\u3042\u308b\u30c7\u30fc\u30bf\u3092\u6271\u3046\u7528\u9014\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u7279\u6027\u3092\u7406\u89e3\u3057\u3001\u76ee\u7684\u306b\u5fdc\u3058\u3066\u4f7f\u3044\u5206\u3051\u308b\u3053\u3068\u304c\u3001\u30bb\u30ad\u30e5\u30a2\u3067\u610f\u56f3\u901a\u308a\u306e\u5b9f\u88c5\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u672c\u8a18\u4e8b\u306e\u30dd\u30a4\u30f3\u30c8 2. PHP\u306e $_GET \u3068 $_POST \u3068\u306f\uff1f PHP\u3067\u306f\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u304b\u3089\u53d7\u3051\u53d6\u3063\u305f\u30c7\u30fc\u30bf\u3092\u6271\u3046\u305f\u3081\u306b\u3001\u3044\u304f\u3064\u304b\u306e\u30b9\u30fc\u30d1\u30fc\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u4e2d\u3067\u3082\u4ee3\u8868\u7684\u306a\u3082\u306e\u304c  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":570,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[85],"tags":[],"class_list":["post-761","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/nexive.tech\/index.php?rest_route=\/wp\/v2\/posts\/761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nexive.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nexive.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nexive.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nexive.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=761"}],"version-history":[{"count":2,"href":"https:\/\/nexive.tech\/index.php?rest_route=\/wp\/v2\/posts\/761\/revisions"}],"predecessor-version":[{"id":866,"href":"https:\/\/nexive.tech\/index.php?rest_route=\/wp\/v2\/posts\/761\/revisions\/866"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nexive.tech\/index.php?rest_route=\/wp\/v2\/media\/570"}],"wp:attachment":[{"href":"https:\/\/nexive.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nexive.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nexive.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}