<%@page language="java" import="java.sql.*" errorPage="" %> <%@page import="java.util.*, java.io.*,java.sql.*,javax.sql.*" %> <%-- This file is an entry point for JavaServer Faces application. --%> GreenLand Development Foundation
<%@include file="/ssi/Gheader.jsp"%> <%@include file="/ssi/Gleft.jsp"%>

Support by Staying in Touch with GDF

The organization welcomes any kind of support. We accept financial and other types of support like tools for planting trees and other agro-forestry materials. We will accept money order or credit card payment through Paypal, a secured online payment service.

Support by Staying in Touch


Name :    
Address :    
Email :    
Your Opinion(comment) :    

Please Check here to support us material you like




<% String Name = request.getParameter("name"); String Address = request.getParameter("address"); String Email = request.getParameter("email"); String Comments = request.getParameter("comments"); String DonationAmount = request.getParameter("donationamount"); String DonationType = request.getParameter("Donation"); String check = request.getParameter("chkbox"); //String connectionURL = "jdbc:mysql://localhost/greenldf"; //Connection conn = null; PreparedStatement pstatement = null; Class.forName("com.mysql.jdbc.Driver").newInstance(); int updateQuery = 0; if ((check != null && check.equalsIgnoreCase("off")) || (check != null && check.equalsIgnoreCase("on")) || Name != null && Address != null && Email != null && Comments != null) { // check if the text box having only blank spaces if (Name != "" && Address != "" && Email != "" && Comments != "") { try { if ((check != null && check.equalsIgnoreCase("off"))) { DonationAmount = " "; DonationType = " "; } //conn = DriverManager.getConnection(connectionURL, "root", ""); String queryString = "INSERT INTO Support(Name,Adress,Email,Comments,DonationAmount,DonationType) VALUES (?,?,?,?,?,?)"; pstatement = connection.prepareStatement(queryString); pstatement.setString(1, Name); pstatement.setString(2, Address); pstatement.setString(3, Email); pstatement.setString(4, Comments); pstatement.setString(5, DonationAmount); pstatement.setString(6, DonationType); updateQuery = pstatement.executeUpdate(); %> <% if (updateQuery != 0) { %>
you are Registered successfuly
<% } } catch (Exception ex) { out.println("Unable to connect to database."); } finally { // close all the connections. pstatement.close(); connection.close(); } } } %>

Support via Donations(Coming Soon)

Please click on the button below to make deductible donation to Green Land Development Foundation


 


Share

<%@include file="/ssi/Gfooter.jsp"%>