Recommended: ASP Chinese characters to pinyin, support custom special words This time I updated the blog program I used to use, using the pinyin of the article title when generating static files. This involves how to convert text into pinyin. I took a rough look online. The same function should only be normal under GB2312, and there is no
Official reference manual, authoritative technical manual download electronic book tutorial classification The following dotted box is the specific code of the mk.asp file:
--------------------------------------------------------------------------------
| <% filename=test.htm if request(body)<> then set fso = Server.CreateObject(Scripting.FileSystemObject) set fout = fso.CreateTextFile(server.mappath(&filename&)) fout.write Title (title): & request.form (title) & <br> fout.write content (body): & request.form(body) fout.close set fout=nothing set fso=nothing end if %> |
| <form name=form1 method=post action=> <input name=title size=18><br> <textarea name=body></textarea> <br> <br> <input type=submit name=Submit value=generate> </form> |
--------------------------------------------------------------------------------
Then enter the page mk.asp in the browser. After filling in, the file test.htm will be generated, and the contents in it are what you just filled in.
Share: Summary of 11 database syntax for ASP connection Operations related to databases are often used. It includes connection codes, SQL commands, etc., but I have never deliberately remembered them (I don’t want to remember this thing), so I often check the books and flip through them when I use them. Some less used databases may not be able to go smoothly