{"id":45509,"date":"2011-07-24T03:28:22","date_gmt":"2011-07-24T03:28:22","guid":{"rendered":"https:\/\/ru.wordpress.org\/support\/2011\/07\/24\/%d0%be%d1%82%d0%bf%d1%80%d0%b0%d0%b2%d0%ba%d0%b0-post-%d1%84%d0%be%d1%80%d0%bc%d1%8b-%d1%81%d0%be-%d1%81%d1%82%d1%80%d0%b0%d0%bd%d0%b8%d1%86%d1%8b\/"},"modified":"2011-07-24T03:28:22","modified_gmt":"2011-07-24T03:28:22","slug":"%d0%be%d1%82%d0%bf%d1%80%d0%b0%d0%b2%d0%ba%d0%b0-post-%d1%84%d0%be%d1%80%d0%bc%d1%8b-%d1%81%d0%be-%d1%81%d1%82%d1%80%d0%b0%d0%bd%d0%b8%d1%86%d1%8b","status":"closed","type":"topic","link":"https:\/\/ru.wordpress.org\/support\/topic\/%d0%be%d1%82%d0%bf%d1%80%d0%b0%d0%b2%d0%ba%d0%b0-post-%d1%84%d0%be%d1%80%d0%bc%d1%8b-%d1%81%d0%be-%d1%81%d1%82%d1%80%d0%b0%d0%bd%d0%b8%d1%86%d1%8b\/","title":{"rendered":"\u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043f\u0438\u0441\u0435\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c POST \u0441\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b"},"content":{"rendered":"<p>\u041f\u0440\u0438\u0432\u0435\u0442!<br \/>\n\u0421\u043e\u0437\u0434\u0430\u043b \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441 \u0444\u043e\u0440\u043c\u043e\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043f\u0438\u0441\u0435\u043c, \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c Post, \u0444\u043e\u0440\u043c\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 <code>&lt;?php the_content() ?&gt;<\/code> \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c, \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u043e\u0448\u0438\u0431\u043a\u0443 404 \u0438 \u043f\u0438\u0441\u044c\u043c\u043e \u043d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f, \u0430\u0434\u0440\u0435\u0441 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u043c \u0436\u0435 \u0441\u0430\u043c\u044b\u043c \ud83d\ude41<br \/>\n\u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0447\u0435\u043c \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u043e?<\/p>\n<p><strong>\u0424\u043e\u0440\u043c\u0430 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438:<\/strong><\/p>\n<pre><code>&lt;?php\n\nif(isset($_POST[&#039;submit&#039;])) {\n\n$name = $_POST[&#039;name&#039;];\n$subject = $_POST[&#039;subject&#039;];\n$email = $_POST[&#039;email&#039;];\n$comments = $_POST[&#039;message&#039;];\n\n$emailTo = &#039;test@test.ru&#039;;\n$body = &quot;\u0418\u043c\u044f: $name \\n\\nEmail: $email \\n\\n\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:\\n $comments&quot;;\n$headers = &#039;From: &lt;&#039;.$emailTo.&#039;&gt;&#039; . &quot;\\r\\n&quot; . &#039;Reply-To: &#039; . $email;\n$headers .= &quot;\\r\\nContent-Type: text\/plain; charset=UTF-8&quot;;\n$headers .= &quot;\\r\\nContent-Transfer-Encoding: 8bit\\r\\n&quot;;\nmail($emailTo, $subject, $body, $headers);\n$emailSent = true;\n\n}\n?&gt;\n\n&lt;form method=&quot;post&quot; action=&quot;http:\/\/site.ru\/contacts&quot; name=&quot;contact&quot;&gt;\n\u0412\u0430\u0448\u0435 \u0438\u043c\u044f:&lt;br&gt;\n&lt;input type=&quot;text&quot; name=&quot;name&quot; size=&quot;40&quot; value=&quot;&lt;?php echo $name; ?&gt;&quot; \/&gt;&lt;br&gt;&lt;br&gt;\n\u0412\u0430\u0448 E-Mail:&lt;br&gt;\n&lt;input type=&quot;text&quot; name=&quot;email&quot; size=&quot;40&quot; value=&quot;&lt;?php echo $email; ?&gt;&quot; \/&gt;&lt;br&gt;&lt;br&gt;\n\u0422\u0435\u043c\u0430 \u043f\u0438\u0441\u044c\u043c\u0430:&lt;br&gt;\n&lt;input type=&quot;text&quot; name=&quot;subject&quot; size=&quot;40&quot; value=&quot;&lt;?php echo $subject; ?&gt;&quot; \/&gt;&lt;br&gt;&lt;br&gt;\n\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435&lt;br&gt;\n&lt;textarea name=&quot;message&quot; cols=&quot;42&quot; rows=&quot;10&quot;&gt;&lt;?php echo $message; ?&gt;&lt;\/textarea&gt;&lt;br&gt;&lt;br&gt;\n&lt;input type=&quot;submit&quot; value=&quot;\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c&quot; name=&quot;submit&quot; \/&gt;\n&lt;\/form&gt;<\/code><\/pre>\n<p>p.s. \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043d\u043e \u043d\u0435 \u0441\u0442\u0430\u0432\u043b\u044e \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432 \u043f\u0438\u0441\u044c\u043c\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438\u0437 \u0442\u0435\u043c\u044b.<\/p>\n","protected":false},"template":"","class_list":["post-45509","topic","type-topic","status-closed","hentry","topic-tag-mail"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/45509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/45509\/revisions"}],"wp:attachment":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=45509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}