
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>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
