{"id":36920,"date":"2017-04-09T18:23:48","date_gmt":"2017-04-09T12:23:48","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=36920"},"modified":"2017-04-09T18:25:14","modified_gmt":"2017-04-09T12:25:14","slug":"%d0%b4%d0%b2%d0%b5-%d0%ba%d0%bd%d0%be%d0%bf%d0%ba%d0%b8-submit-%d0%b2-%d0%be%d0%b4%d0%bd%d0%be%d0%b9-%d1%84%d0%be%d1%80%d0%bc%d0%b5","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=36920","title":{"rendered":"\u0414\u0432\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 submit \u0432 \u043e\u0434\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435"},"content":{"rendered":"<p><strong>HTML<\/strong><\/p>\n<pre class=\"html4strict\" style=\"font-family: monospace;\"><span style=\"color: #009900;\">&lt;<span style=\"color: #000000; font-weight: bold;\">form<\/span> <span style=\"color: #000066;\">method<\/span><span style=\"color: #66cc66;\">=<\/span><span style=\"color: #ff0000;\">\"post\"<\/span>&gt;<\/span>\r\n  ...\r\n  <span style=\"color: #009900;\">&lt;<span style=\"color: #000000; font-weight: bold;\">input<\/span> <span style=\"color: #000066;\">type<\/span><span style=\"color: #66cc66;\">=<\/span><span style=\"color: #ff0000;\">\"submit\"<\/span> <span style=\"color: #000066;\">name<\/span><span style=\"color: #66cc66;\">=<\/span><span style=\"color: #ff0000;\">\"prim\"<\/span> <span style=\"color: #000066;\">value<\/span><span style=\"color: #66cc66;\">=<\/span><span style=\"color: #ff0000;\">\"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c\"<\/span> <span style=\"color: #66cc66;\">\/<\/span>&gt;<\/span>\r\n  <span style=\"color: #009900;\">&lt;<span style=\"color: #000000; font-weight: bold;\">input<\/span> <span style=\"color: #000066;\">type<\/span><span style=\"color: #66cc66;\">=<\/span><span style=\"color: #ff0000;\">\"submit\"<\/span> <span style=\"color: #000066;\">name<\/span><span style=\"color: #66cc66;\">=<\/span><span style=\"color: #ff0000;\">\"clean\"<\/span> <span style=\"color: #000066;\">value<\/span><span style=\"color: #66cc66;\">=<\/span><span style=\"color: #ff0000;\">\"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c\"<\/span> <span style=\"color: #66cc66;\">\/<\/span>&gt;<\/span>\r\n<span style=\"color: #009900;\">&lt;<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #000000; font-weight: bold;\">form<\/span>&gt;<\/span><\/pre>\n<p><strong>PHP<\/strong><\/p>\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #009900;\">(<\/span><span style=\"color: #990000;\">isset<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$_POST<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'prim'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">)<\/span> <span style=\"color: #009900;\">{<\/span>\r\n  <span style=\"color: #339933;\">...<\/span>\r\n<span style=\"color: #009900;\">}<\/span>\r\n<span style=\"color: #b1b100;\">else<\/span> <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #009900;\">(<\/span><span style=\"color: #990000;\">isset<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$_POST<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'clean'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">)<\/span> <span style=\"color: #009900;\">{<\/span>\r\n  <span style=\"color: #339933;\">...<\/span>\r\n<span style=\"color: #009900;\">}<\/span><\/pre>\n<div id=\"attachment_36923\" style=\"width: 180px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-36923\" class=\"size-full wp-image-36923\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2017\/04\/87809579870982.png\" alt=\"\" width=\"170\" height=\"29\" \/><p id=\"caption-attachment-36923\" class=\"wp-caption-text\">\u0440\u0438\u0441.1.<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>HTML &lt;form method=&#187;post&#187;&gt; &#8230; &lt;input type=&#187;submit&#187; name=&#187;prim&#187; value=&#187;\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c&#187; \/&gt; &lt;input type=&#187;submit&#187; name=&#187;clean&#187; value=&#187;\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c&#187; \/&gt; &lt;\/form&gt; PHP if (isset($_POST[&#8216;prim&#8217;])) { &#8230; } else if (isset($_POST[&#8216;clean&#8217;])) { &#8230; }<\/p>\n","protected":false},"author":1,"featured_media":36921,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[183],"tags":[],"class_list":["post-36920","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"views":2141,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/36920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=36920"}],"version-history":[{"count":2,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/36920\/revisions"}],"predecessor-version":[{"id":36924,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/36920\/revisions\/36924"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/36921"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=36920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=36920"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=36920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}