{"id":57,"date":"2013-11-28T02:48:24","date_gmt":"2013-11-27T18:48:24","guid":{"rendered":"http:\/\/www.yptk.cn\/index.php\/2013\/11\/28\/%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9aasp%e4%b9%8b%e7%ac%ac%e4%ba%94%e5%a4%a9\/"},"modified":"2013-11-28T02:48:24","modified_gmt":"2013-11-27T18:48:24","slug":"%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9aasp%e4%b9%8b%e7%ac%ac%e4%ba%94%e5%a4%a9","status":"publish","type":"post","link":"http:\/\/yptk.cn\/index.php\/2013\/11\/28\/%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9aasp%e4%b9%8b%e7%ac%ac%e4%ba%94%e5%a4%a9\/","title":{"rendered":"\u5341\u5929\u5b66\u4f1aASP\u4e4b\u7b2c\u4e94\u5929"},"content":{"rendered":"<p><span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u5b66\u4e60\u76ee\u7684\uff1a\u5b66\u4f1a\u6570\u636e\u5e93\u7684\u57fa\u672c\u64cd\u4f5c1\uff08\u5199\u5165\u8bb0\u5f55\uff09<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&nbsp;&nbsp;&nbsp; \u6570\u636e\u5e93\u7684\u57fa\u672c\u64cd\u4f5c\u65e0\u975e\u662f\uff1a\u67e5\u8be2\u8bb0\u5f55\uff0c\u5199\u5165\u8bb0\u5f55\uff0c\u5220\u9664\u8bb0\u5f55\uff0c\u4fee\u6539\u8bb0\u5f55\u3002\u4eca\u5929\u6211\u4eec\u5148\u5b66\u4e60\u5199\u5165\u8bb0\u5f55\u3002<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u5148\u5efa\u7acb\u4e00\u4e2a\u8868\u5355\uff1a<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&lt;form name=&#8221;form1&#8243; method=&#8221;post&#8221; action=&#8221;example5.asp&#8221;&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">name &lt;input type=&#8221;text&#8221; name=&#8221;name&#8221;&gt;&lt;br&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">tel &lt;input type=&#8221;text&#8221; name=&#8221;tel&#8221;&gt;&lt;br&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">message &lt;input type=&#8221;text&#8221; name=&#8221;message&#8221; value=&#8221;&#8221;&gt;&lt;br&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&lt;input type=&#8221;submit&#8221; name=&#8221;Submit&#8221; value=&#8221;\u63d0\u4ea4&#8221;&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&lt;input type=&#8221;reset&#8221; name=&#8221;Submit2&#8243; value=&#8221;\u91cd\u7f6e&#8221;&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&lt;\/form&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u8868\u5355\u63d0\u4ea4\u5230example5.asp\uff0c\u4e0b\u9762\u662fexample5.asp\u7684\u4ee3\u7801\uff1a&nbsp;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&lt;%<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">set conn=server.createobject(&#8220;adodb.connection&#8221;)<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">conn.open &#8220;driver={microsoft access driver (*.mdb)};dbq=&#8221;&amp;server.mappath(&#8220;example3.mdb&#8221;)<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">name=request.form(&#8220;name&#8221;)<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">tel=request.form(&#8220;tel&#8221;)<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">message=request.form(&#8220;message&#8221;)&nbsp;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">exec=&#8221;insert into guestbook(name,tel,message)values(&#8216;&#8221;+name+&#8221;&#8216;,&#8221;+tel+&#8221;,'&#8221;+message+&#8221;&#8216;)&#8221;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">conn.execute exec<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">conn.close<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">set conn=nothing<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">response.write &#8220;\u8bb0\u5f55\u6dfb\u52a0\u6210\u529f!&#8221;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">%&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u5728\u8fd9\u91cc\u524d\u9762\u4e24\u53e5\u6211\u4e0d\u8bf4\u4e86\uff0c\u540e\u9762\u4e09\u53e5\u6211\u4e5f\u4e0d\u8bf4\u4e86\uff0c\u524d\u9762\u8bf4\u8fc7exec\u91cc\u9762\u7684\u662f\u6267\u884c\u7684\u547d\u4ee4\uff0c\u6dfb\u52a0\u8bb0\u5f55\u7684\u6bd4\u8f83\u7e41\uff0c\u5927\u5bb6\u8981\u4ed4\u7ec6\u770b\u3002insert into\u540e\u9762\u52a0\u7684\u662f\u8868\u7684\u540d\u5b57\uff0c\u540e\u9762\u7684\u62ec\u53f7\u91cc\u9762\u662f\u9700\u8981\u6dfb\u52a0\u7684\u5b57\u6bb5\uff0c\u4e0d\u7528\u6dfb\u52a0\u7684\u6216\u8005\u5b57\u6bb5\u7684\u5185\u5bb9\u5c31\u662f\u9ed8\u8ba4\u503c\u7684\u53ef\u4ee5\u7701\u7565\u3002\u6ce8\u610f\uff0c\u8fd9\u91cc\u7684\u53d8\u91cf\u4e00\u5b9a\u8981\u548cACCESS\u91cc\u9762\u7684\u5b57\u6bb5\u540d\u5bf9\u5e94\uff0c\u5426\u5219\u5c31\u4f1a\u51fa\u9519\u3002values\u540e\u9762\u52a0\u7684\u662f\u4f20\u9001\u8fc7\u6765\u7684\u53d8\u91cf\u3002exec\u662f\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c&#8221;insert into guestbook(name,tel,message)values(&#8216;&#8221;\u662f\u7b2c\u4e00\u6bb5\uff0c\u5728ASP\u91cc\u9762\u4e0d\u80fd\u5d4c\u53cc\u5f15\u53f7\uff0c\u6240\u4ee5\u53ef\u4ee5\u7528&#8217;\u4ee3\u66ff\u53cc\u5f15\u53f7\uff0c\u653e\u5728\u53cc\u5f15\u53f7\u91cc\u9762\uff0c\u8fde\u63a5\u4e24\u4e2a\u53d8\u91cf\u7528+\u6216\u8005&amp;\u6240\u4ee5&#8221;&#8216;,&#8221;\u53c8\u662f\u4e00\u6bb5\uff0c\u4e2d\u95f4\u5939\u4e86\u4e00\u4e2aname\u5c31\u662f\u8868\u5355\u4f20\u6765\u7684\u53d8\u91cf\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u5728\u8fd9\u4e2a\u53d8\u91cf\u5916\u9762\u52a0\u4e24\u4e2a&#8221;\uff0c\u8868\u793a\u662f\u5b57\u7b26\u4e32\u4e86\uff0c\u540e\u9762\u7684tel\u662f\u6570\u5b57\u578b\u53d8\u91cf\u6240\u4ee5\u4e0d\u9700\u8981\u5916\u9762\u5305\u56f4&#8221;\uff0c\u5927\u5bb6\u6162\u6162\u5206\u6790\u8fd9\u53e5\u8bdd\uff0c\u5982\u679c\u7528\u8868\u5355\u4f20\u6765\u7684\u6570\u636e\u4ee3\u66ff\u53d8\u91cf\u540d\u5b57\u7684\u8bdd\u8fd9\u53e5\u8bdd\u4e3a\uff08\u5047\u8bbename=&#8221;aaa&#8221;,tel=111,message=&#8221;bbb&#8221;\uff09\uff1a&#8221;insert into guestbook(name,tel,message)values(&#8216;aaa&#8217;,111,&#8217;bbb&#8217;)&#8221;\u3002<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u63a5\u4e0b\u6765\u7684conn.execute \u5c31\u662f\u6267\u884c\u8fd9\u4e2aexec\u547d\u4ee4\uff0c\u6700\u540e\u522b\u5fd8\u8bb0\u628a\u6253\u5f00\u7684\u6570\u636e\u5e93\u5173\u95ed\uff0c\u628a\u5b9a\u4e49\u7684\u7ec4\u4ef6\u8bbe\u7f6e\u4e3a\u7a7a\uff0c\u8fd9\u6837\u53ef\u4ee5\u8fd4\u56de\u8d44\u6e90\u3002\u4e0a\u6b21\u7684\u8bfb\u53d6\u4e3a\u4e86\u7b80\u5355\uff0c\u6211\u6ca1\u6709\u5173\u95ed\uff0c\u5927\u5bb6\u53ef\u4ee5\u8865\u5145\u4e0a\u53bb\uff1a<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">rs.close<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">set rs=nothing<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">conn.close<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">set conn=nothing<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u8bb0\u4f4f\uff0c\u6b21\u5e8f\u4e0d\u53ef\u4ee5\u98a0\u5012\uff01&nbsp;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u5927\u5bb6\u53ef\u4ee5\u5230\u6570\u636e\u5e93\u91cc\u9762\u53bb\u770b\u4e00\u770b\uff0c\u6216\u8005\u7528example4.asp\u8bfb\u53d6\u770b\u770b\u662f\u4e0d\u662f\u591a\u4e86\u8bb0\u5f55\u963f\uff1f<\/span><\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b66\u4e60\u76ee\u7684\uff1a\u5b66\u4f1a\u6570\u636e\u5e93\u7684\u57fa\u672c\u64cd\u4f5c1\uff08\u5199\u5165\u8bb0\u5f55\uff09 &nbsp;&nbsp;&nbsp; \u6570\u636e\u5e93\u7684\u57fa\u672c\u64cd\u4f5c\u65e0\u975e\u662f\uff1a\u67e5\u8be2\u8bb0\u5f55\uff0c\u5199\u5165\u8bb0\u5f55\uff0c\u5220\u9664\u8bb0\u5f55\uff0c\u4fee\u6539\u8bb0\u5f55\u3002\u4eca\u5929\u6211\u4eec\u5148\u5b66\u4e60\u5199\u5165\u8bb0\u5f55\u3002 \u5148\u5efa\u7acb\u4e00\u4e2a\u8868\u5355\uff1a &lt;form name=&#8221;form1&#8243; method=&#8221;post&#8221; action=&#8221;example5.asp&#8221;&gt; name &#038; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[15],"tags":[],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-15"],"_links":{"self":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":0,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"wp:attachment":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}