Recommended: How to prevent double voting in online voting ASP objects have 5 objects in ASP: Request, Response, Session, Application, and Server. The following only describes the object attributes that can be used in this article. For other attributes, please refer to relevant materials. The principle of the method provided in this article is: set a logical variable IsVoted, verify the value of IsVoted before voting, and only when the value is False,
There are many online editors now with powerful functions, such as eWebEditor, but they also take up a lot of space. Some simple forums and message boards do not need too powerful functions. HtmlEditor is such an editor, simple and beautiful, and easy to call. , recommended for everyone to use.code when calling,
Submit page:
| <form method=POST action=Post.asp name=aaa> <input name=Title size=50> <textareaname=contentstyle=display:none></textarea> <iframeid=Editorname=Editorsrc=HtmlEditor/index.html?ID=contentframeborder=0marginheight=0marginwidth=0scrolling=Nostyle=height:320px;width:100%></iframe> <input type=submit value=OK name=button> </form> |
Processing page:
.... recordset1.addnew() recordset1(zt)=Request(Title) recordset1(nr)=Request(Content) recordset1.update .... |
Rendering:
Share: Detailed explanation of Asp function Cbool(string) Convert to Boolean value Cbyte(string) Convert to byte type value Ccur(string) Convert to currency type value Cdate(string) Convert to day-ahead type value Cdbl(string) Convert to double precision value Cint(string ) Convert to an integer value Clng(string) Convert to a long integer value Csng(string) Convert to a single precision value Cstr(