Current File : /home/obabain/public_html/abc/customer_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" %>
       <%Statement st=con.createStatement(); %>
<!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 action="CompanyView.jsp" method="get">
<%
	try{
		
		String gid=request.getParameter("groupid");
	String gname=request.getParameter("groupname");
	

	
     int i=st.executeUpdate("insert into customer(GroupId,CustmerGroupName)values('"+gid+"','"+gname+"')");
     response.sendRedirect("customer_group_view.jsp");
	}
catch(Exception el)
{
}

     %>															
</form>
</body>
</html>