<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@page import="java.sql.*"%> صفحه نظرات كاربران
 

  <% if(request.getParameter("payam")!=null){ String fname = (String) request.getParameter("fname"); String lname = (String) request.getParameter("lname"); String title = (String) request.getParameter("title"); String tel = (String) request.getParameter("tel"); String email = (String) request.getParameter("email"); String payam = (String) request.getParameter("payam"); String date = (String) request.getParameter("date"); String timeadd = (String) request.getParameter("timeadd"); String ip = (String) request.getParameter("ip"); String query = "insert into nazarat (fname, lname, title, tel, email, payam, date, timeadd, ip) values('" + fname + "','" + lname + "','" + title + "','" + tel + "','" + email + "','" + payam + "','" + date + "','" + timeadd + "','" + ip +"')"; try { Class.forName("com.mysql.jdbc.Driver"); Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/aiplaw_test?characterEncoding=utf8", "root","aippia"); Statement statement = connection.createStatement(); statement.executeUpdate(query); connection.close(); } catch (Exception e) { // TODO Auto-generated catch block out.println("Not Successfull"); e.printStackTrace(); return; } out.println("Successfull"); response.sendRedirect("tanks.jsp"); } else{ %>

نام
نام خانوادگي
سمت
تلفن
ايميل
شرح
 
 
 


 
<% } %>