How to insert data in htmltext object to database?
store textarea value in database
Collapse
X
-
Tags: None
-
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? -
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 chaitanya1167I 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
-
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 guidelinesComment
-
Here's a really useful article about inserting information into a database written by a member of this forum:
Comment
Comment