Re: How to store the HTML code into database(microsoft access)

  •  07-23-2008, 11:44 PM

    Re: How to store the HTML code into database(microsoft access)

    i apply the coding inside but same cannot store the html code
     
    default.asp
    <!-- #include file = "CuteEditor_Files/include_CuteEditor.asp" -->
    <html>    
        <head>
            <link rel="stylesheet" href="asp.css"  type="text/css" />
        </head>
            <%set conn=Server.CreateObject("ADODB.Connection")
                conn.Provider="Microsoft.Jet.OLEDB.4.0"
                conn.open(server.mappath("database/dbmemo.mdb"))
                set rs = Server.CreateObject("ADODB.Recordset")%>

            <form action="add.asp" method="post" ID="Form1">
                        
            <h1>Enable All Toolbars</h1>
            <hr>
            <p>This example shows you all the predefined buttons. </p>
            <br />
             <%            
      Set editor = New CuteEditor
            editor.ID = "HTML_CONTENT"
            editor.Text = request("HTML_CONTENT")
            editor.FilesPath = "CuteEditor_Files"
            editor.Draw()
        %>
        
             <p>
            
              <input type="submit" name="subsubmit" value="Submit Now">
            </form>
        </body>
    </html>
     
    add.asp
     
    <%set conn=Server.CreateObject("ADODB.Connection")
                conn.Provider="Microsoft.Jet.OLEDB.4.0"
                conn.open(server.mappath("database/dbmemo.mdb"))

    conn.execute("INSERT INTO tblmemo([memo]) values ('" & Request.Form("editor1")& "')")


    Response.Write (Request.Form("HTML_CONTENT"))
    Response.Redirect "default.asp"


    %>
View Complete Thread