store textarea value in database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chaitanya1167
    New Member
    • Dec 2007
    • 8

    store textarea value in database

    How to insert data in htmltext object to database?
  • chaitanya1167
    New Member
    • Dec 2007
    • 8

    #2
    store textarea value in database

    I have taken One html text object and three buttons.
    I have written code in such a way value of button clicked displays in text area.
    Now I have to store value in textarea to database.
    How can this be done?

    Comment

    • shweta123
      Recognized Expert Contributor
      • Nov 2006
      • 692

      #3
      Hi,

      Please write this code to save the data into the database :
      Code:
        
      
          <%
      
           Dim con
           Dim sql
           Dim txtValue
          
          'connection to db
          set con = Server.CreateObject("Adodb.Connection")
          con.open constr
      
          'Get the value for textArea
          txtValue = Request.Form("textArea1")
         
           ' now, save that  into db
        
          sql = "Insert into yourtable values (txtValue)
          con.execute(sql)
      
          con.close
          
         %>
      Originally posted by chaitanya1167
      I have taken One html text object and three buttons.
      I have written code in such a way value of button clicked displays in text area.
      Now I have to store value in textarea to database.
      How can this be done?

      Comment

      • chaitanya1167
        New Member
        • Dec 2007
        • 8

        #4
        solve this pls

        I have taken One html text object and three buttons.
        I have written code in such a way value of button clicked displays in text area.
        Now I have to store value in textarea to database.
        How can this be done? In ASP.
        Last edited by jhardman; Dec 18 '07, 04:57 PM. Reason: merged threads and changed title. Please read posting guidelines

        Comment

        • Nicodemas
          Recognized Expert New Member
          • Nov 2007
          • 164

          #5
          Here's a really useful article about inserting information into a database written by a member of this forum:

          Comment

          Working...