Current File : //home/obabain/public_html/abc/salesman_group_insert.jsp |
<%@ page language="java" import="java.sql.*" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="javax.sql.*" %>
<%@ include file="Connection.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form method="get">
<%
try{
String cname=request.getParameter("s_groupid");
String adhar=request.getParameter("s_groupname");
Statement st=con.createStatement();
int i=st.executeUpdate("insert into salesgroup(s_groupid,s_groupname)values('"+cname+"','"+adhar+"')");
response.sendRedirect("salesman_group_view.jsp");
}
catch(Exception el)
{
}
%>
</form>
</body>
</html>