{"id":33807,"date":"2024-11-25T15:09:47","date_gmt":"2024-11-25T07:09:47","guid":{"rendered":"https:\/\/fwq.ai\/blog\/33807\/"},"modified":"2024-11-25T15:09:47","modified_gmt":"2024-11-25T07:09:47","slug":"%e5%b8%9d%e5%9b%bdcms%e4%bf%a1%e6%81%af%e5%8f%8d%e9%a6%88%e6%80%8e%e4%b9%88%e5%81%9a%e7%9a%84","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/33807\/","title":{"rendered":"\u5e1d\u56fdcms\u4fe1\u606f\u53cd\u9988\u600e\u4e48\u505a\u7684"},"content":{"rendered":"<blockquote><p>\n  \u5e1d\u56fdcms\u5236\u4f5c\u4fe1\u606f\u53cd\u9988\u8868\u5355\u53ef\u5206\u4e3a\u4ee5\u4e0b4\u6b65\uff1a1. \u521b\u5efa\u53cd\u9988\u8868\u5355\u548c\u8868\u5355\u5b57\u6bb5\uff1b2. \u8bbe\u7f6e\u63d0\u4ea4\u5730\u5740\uff1b3. \u5904\u7406\u53cd\u9988\u4fe1\u606f\uff1b4. \u914d\u7f6e\u53cd\u9988\u9875\u9762\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/16\/2024041620421986515.jpg\" class=\"aligncenter\" title=\"\u5e1d\u56fdcms\u4fe1\u606f\u53cd\u9988\u600e\u4e48\u505a\u7684\u63d2\u56fe\" alt=\"\u5e1d\u56fdcms\u4fe1\u606f\u53cd\u9988\u600e\u4e48\u505a\u7684\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5e1d\u56fdCMS\u4fe1\u606f\u53cd\u9988\u600e\u4e48\u505a\uff1f<\/strong><\/p>\n<p><strong>\u7b2c\u4e00\u6b65\uff1a\u521b\u5efa\u53cd\u9988\u8868\u5355<\/strong><\/p>\n<ol>\n<li>\u767b\u5f55\u5e1d\u56fdCMS\u540e\u53f0\u3002<\/li>\n<li>\u5c55\u5f00\u201c\u5185\u5bb9\u7ba1\u7406\u201d\u83dc\u5355\uff0c\u9009\u62e9\u201c\u5355\u9875\u7ba1\u7406\u201d\u3002<\/li>\n<li>\u5355\u51fb\u201c\u65b0\u5efa\u5355\u9875\u201d\u3002<\/li>\n<li>\u5728\u8868\u5355\u6807\u9898\u4e2d\u8f93\u5165\u201c\u4fe1\u606f\u53cd\u9988\u201d\u3002<\/li>\n<li>\n<p>\u5728\u8868\u5355\u5185\u5bb9\u4e2d\u521b\u5efa\u8868\u5355\u5b57\u6bb5\uff0c\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u8f93\u5165\u6846\uff08\u7528\u4e8e\u59d3\u540d\u3001\u8054\u7cfb\u65b9\u5f0f\uff09<\/li>\n<li>\u6587\u672c\u533a\uff08\u7528\u4e8e\u53cd\u9988\u5185\u5bb9\uff09<\/li>\n<li>\u9a8c\u8bc1\u7801\uff08\u7528\u4e8e\u9632\u6b62\u5783\u573e\u4fe1\u606f\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><strong>\u7b2c\u4e8c\u6b65\uff1a\u8bbe\u7f6e\u63d0\u4ea4\u5730\u5740<\/strong><\/p>\n<ol>\n<li>\u5728\u8868\u5355\u5185\u5bb9\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/li>\n<\/ol>\n<pre>&lt;form action=\"{$dedeurl}\/post.php\" method=\"post\"&gt;\n&lt;!--\u8868\u5355\u5b57\u6bb5--&gt;\n&lt;\/form&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li>\u8bf7\u6ce8\u610f\uff0c{$dedeurl} \u662f\u5e1d\u56fdCMS\u63d0\u4f9b\u7684\u7f51\u7ad9\u5730\u5740\u53d8\u91cf\u3002<\/li>\n<\/ol>\n<p><strong>\u7b2c\u4e09\u6b65\uff1a\u5904\u7406\u53cd\u9988\u4fe1\u606f<\/strong><\/p>\n<ol>\n<li>\u5728post.php\u6587\u4ef6\u4e2d\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\u5904\u7406\u53cd\u9988\u4fe1\u606f\uff1a<\/li>\n<\/ol>\n<pre>\/\/ \u63a5\u6536\u53cd\u9988\u4fe1\u606f\n$name = $_POST['name'];\n$contact = $_POST['contact'];\n$content = $_POST['content'];\n\n\/\/ \u9a8c\u8bc1\u8868\u5355\nif (empty($name) || empty($contact) || empty($content)) {\n    echo '\u8bf7\u586b\u5199\u6240\u6709\u5fc5\u586b\u5b57\u6bb5\uff01';\n    exit;\n}\n\n\/\/ \u4fdd\u5b58\u53cd\u9988\u4fe1\u606f\u5230\u6570\u636e\u5e93\n$sql = \"INSERT INTO `dede_feedback` (`name`, `contact`, `content`) VALUES ('$name', '$contact', '$content')\";\n$res = $db-&gt;query($sql);\n\nif ($res) {\n    echo '\u60a8\u7684\u53cd\u9988\u5df2\u6210\u529f\u63d0\u4ea4\uff01';\n} else {\n    echo '\u63d0\u4ea4\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01';\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u7b2c\u56db\u6b65\uff1a\u914d\u7f6e\u53cd\u9988\u9875\u9762<\/strong><\/p>\n<ol>\n<li>\u5728\u5e1d\u56fdCMS\u540e\u53f0\uff0c\u5c55\u5f00\u201c\u9996\u9875\u8bbe\u7f6e\u201d\u83dc\u5355\uff0c\u9009\u62e9\u201c\u9996\u9875\u6a21\u677f\u8bbe\u7f6e\u201d\u3002<\/li>\n<li>\u5728\u201c\u5e95\u5c42\u6a21\u677f\u8bbe\u7f6e\u201d\u4e2d\uff0c\u9009\u62e9\u201c\u4fe1\u606f\u53cd\u9988\u6a21\u677f\u201d\u3002<\/li>\n<li>\u5728\u4e0b\u62c9\u5217\u8868\u4e2d\u9009\u62e9\u60a8\u521b\u5efa\u7684\u4fe1\u606f\u53cd\u9988\u5355\u9875\u3002<\/li>\n<\/ol>\n<p>\u5b8c\u6210\u4ee5\u4e0a\u6b65\u9aa4\u540e\uff0c\u60a8\u7684\u7f51\u7ad9\u5c06\u62e5\u6709\u4e00\u4e2a\u53ef\u4f9b\u7528\u6237\u63d0\u4ea4\u53cd\u9988\u7684\u4fe1\u606f\u53cd\u9988\u8868\u5355\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u4fe1\u606f\u53cd\u9988\u600e\u4e48\u505a\u7684\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5e1d\u56fdcms\u5236\u4f5c\u4fe1\u606f\u53cd\u9988\u8868\u5355\u53ef\u5206\u4e3a\u4ee5\u4e0b4\u6b65\uff1a1. \u521b\u5efa\u53cd\u9988\u8868\u5355\u548c\u8868\u5355\u5b57\u6bb5\uff1b2. \u8bbe\u7f6e\u63d0\u4ea4\u5730\u5740\uff1b3. \u5904\u7406\u53cd\u9988\u4fe1\u606f\uff1b4. \u914d\u7f6e\u53cd\u9988\u9875\u9762\u3002 \u5e1d\u56fdCMS\u4fe1\u606f\u53cd\u9988\u600e\u4e48\u505a\uff1f \u7b2c\u4e00\u6b65\uff1a\u521b\u5efa\u53cd\u9988\u8868\u5355 \u767b\u5f55\u5e1d\u56fdCMS\u540e\u53f0\u3002 \u5c55\u5f00\u201c\u5185\u5bb9\u7ba1\u7406\u201d\u83dc\u5355\uff0c\u9009\u62e9\u201c\u5355\u9875\u7ba1\u7406\u201d\u3002 \u5355\u51fb\u201c\u65b0\u5efa\u5355\u9875\u201d\u3002 \u5728\u8868\u5355\u6807\u9898\u4e2d\u8f93\u5165\u201c\u4fe1\u606f\u53cd\u9988\u201d\u3002 \u5728\u8868\u5355\u5185\u5bb9\u4e2d\u521b\u5efa\u8868\u5355\u5b57\u6bb5\uff0c\u5305\u62ec\uff1a \u8f93\u5165\u6846\uff08\u7528\u4e8e\u59d3\u540d\u3001\u8054\u7cfb\u65b9\u5f0f\uff09 \u6587\u672c\u533a\uff08\u7528\u4e8e\u53cd\u9988\u5185\u5bb9\uff09 \u9a8c\u8bc1\u7801\uff08\u7528\u4e8e\u9632\u6b62\u5783\u573e\u4fe1\u606f\uff09 \u7b2c\u4e8c\u6b65\uff1a\u8bbe\u7f6e\u63d0\u4ea4\u5730\u5740 \u5728\u8868\u5355\u5185\u5bb9\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a &lt;form action=&#8221;{$dedeurl}\/post.php&#8221; method=&#8221;post&#8221;&gt; &lt;!&#8211;\u8868\u5355\u5b57\u6bb5&#8211;&gt; &lt;\/form&gt; \u767b\u5f55\u540e\u590d\u5236 \u8bf7\u6ce8\u610f\uff0c{$dedeurl} \u662f\u5e1d\u56fdCMS\u63d0\u4f9b\u7684\u7f51\u7ad9\u5730\u5740\u53d8\u91cf\u3002 \u7b2c\u4e09\u6b65\uff1a\u5904\u7406\u53cd\u9988\u4fe1\u606f \u5728post.php\u6587\u4ef6\u4e2d\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\u5904\u7406\u53cd\u9988\u4fe1\u606f\uff1a \/\/ \u63a5\u6536\u53cd\u9988\u4fe1\u606f $name = $_POST[&#8216;name&#8217;]; $contact = $_POST[&#8216;contact&#8217;]; $content = $_POST[&#8216;content&#8217;]; \/\/ \u9a8c\u8bc1\u8868\u5355 if (empty($name) || empty($contact) || empty($content)) { echo &#8216;\u8bf7\u586b\u5199\u6240\u6709\u5fc5\u586b\u5b57\u6bb5\uff01&#8217;; exit; } \/\/ \u4fdd\u5b58\u53cd\u9988\u4fe1\u606f\u5230\u6570\u636e\u5e93 $sql = [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-33807","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/33807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=33807"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/33807\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=33807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=33807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=33807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}