How to get the text from textarea in HTML and store it in database using javascript and jsp
How to get the text from textarea in HTML and store it in database using javascript and jsp
<script>
function str()
{
<%
Class.forName("org.postgresql.Driver");
con=DriverManager.getConnection("jdbc:postgresql://localhost:5432/test","postgres","123");
String rm = request.getParameter("remark");
alert("rm");
Statement st=con.createStatement();
st.executeUpdate("INSERT INTO test.public.list VALUES('"+rm+"')");
%>
}
</script>
View Answers
Ads
Related Tutorials/Questions & Answers:
Advertisements
How to get data from Oracle database using JSP
How to
get data
from Oracle
database using JSP hello i have a simple problem in
jsp in the sense to
get data
from the
database like oracle . I have... the answer to retrieve data
from the
database by
using servlet or
jsp program
how to insert data in database using html+jsp
how to insert data in
database using html+jsp anyone know what... and
database name. Here machine name id localhost and
database name...";
// declare a connection by
using Connection interface
JSP Get Data From Database
JSP Get Data
From Database
In this section we will discuss about
how to
get data
from database using
JSP.
To
get data
from database to a
JSP page we... example which lets you understand to fetch data
from database in
JSP
how to get data from database into dropdownlist in jsp
how to
get data
from database into dropdownlist in jsp Can anybody... tutorial go through the link
JSP Get Data Into Dropdown list
From Database
 ... the
database and set it into dropdown list in
jsp
please help
<br/>
how to display values from database into table using jsp
how to display values
from database into table
using jsp I want to display values
from database into table based on condition in query,
how... the values
from database based on the bookname or authorname entered must be display
How To Store HTML img Into The MySQL Using Java
How To
Store HTML img Into The MySQL
Using Java
In this section you will read about
how to
get the image
from Html img src
tag and saved... the image into the
database
using MySQL in Java. In this example I have created a
JSP
how to check username & password from database using jsp
how to check username & password
from database using jsp Hello,
I have created 1
html page which contain username, password & submit button.
in my oracle10G
database already contain table name admin which has name, password