<%@ page language="java" import="com.appson.mail.*"%> <% String name = (request.getParameter("userName")!= null)? request.getParameter("userName"):""; String phone = (request.getParameter("userPhone")!= null)? request.getParameter("userPhone"):""; String email = (request.getParameter("userEmail")!= null)? request.getParameter("userEmail"):""; String address = (request.getParameter("userAddress")!= null)? request.getParameter("userAddress"):""; String city = (request.getParameter("userCity")!= null)? request.getParameter("userCity"):""; String state = (request.getParameter("userState")!= null)? request.getParameter("userState"):""; String zip = (request.getParameter("userZip")!= null)? request.getParameter("userZip"):""; String paytype = (request.getParameter("paytype")!= null)? request.getParameter("paytype"):""; String interest = "None selected"; String[] whfvolunteer = request.getParameterValues("whfvolunteer"); if ( whfvolunteer!=null ) { interest = ""; for( int i=0; i") ) pageSubmitted = true; if ( pageSubmitted && (name!=null && !name.equals("")) && (phone!=null && !phone.equals("")) && (email!=null && !email.equals("")) && (address!=null && !address.equals("")) && (city!=null && !city.equals("")) && (state!=null && !state.equals("")) && (zip!=null && !zip.equals("")) && (paytype!=null && !paytype.equals("")) ) { if ( paytype.equals("paypal") ) { doPayPal = true; doSendMail = true; } else { doCheckPayment = true; } } if ( doSendMail ) { mailBean mail = new mailBean(); StringBuffer msg = new StringBuffer(); msg.append("The following was submitted from the WHF Membership website page:\n\n"); msg.append("NOTE: This request is pending PayPal completion!\n\n"); msg.append("Requestor Information\n"); msg.append(separator); msg.append("Name: " + name + "\n"); msg.append("Phone: " + phone + "\n"); msg.append("Email: " + email + "\n"); msg.append("Address: " + address + "\n"); msg.append("City: " + city + "\n"); msg.append("State: " + state + "\n"); msg.append("Zip: " + zip + "\n\n"); msg.append("WHF Membership Payment\n"); msg.append(separator); msg.append("Method: " + paytype + "\n\n"); msg.append("WHF Volunteer Interest\n"); msg.append(separator); msg.append("Areas: " + interest + "\n"); if (whfvolOther!=null && !whfvolOther.equals("")) { msg.append("Other: " + whfvolOther + "\n"); } msg.append("\n\n"); msg.append("=========================================================\n"); msg.append("Developed & Maintained By: AppsOn, http://www.AppsOn.com"); mail.setSendAsHTML(false); mail.setFromAddress("info@wildlifeheritage.org"); mail.setFromName("WHF Website"); mail.setSubject("WHF Membership Request From " + name + "!"); mail.setTo("kvelasco@wildlifeheritage.org,lwilliams@wildlifeheritage.org"); mail.setBcc("admin@appson.com"); mail.setBuffer(msg.toString()); mail.sendMail(); } if ( doCheckPayment ) { StringBuffer msg = new StringBuffer(); msg.append("Requestor Information
"); msg.append(separator + "
"); msg.append("Name: " + name + "
"); msg.append("Phone: " + phone + "
"); msg.append("Email: " + email + "
"); msg.append("Address: " + address + "
"); msg.append("City: " + city + "
"); msg.append("State: " + state + "
"); msg.append("Zip: " + zip + "

"); msg.append("WHF Membership Payment
"); msg.append(separator + "
"); msg.append("Method: " + paytype + "

"); msg.append("WHF Volunteer Interest
"); msg.append(separator + "
"); msg.append("Areas: " + interest + "
"); if (whfvolOther!=null && !whfvolOther.equals("")) { msg.append("Other: " + whfvolOther + "
"); } %> WHF Membership

Wildlife Heritage Foundation

Membership Request

Please mail your payment with a copy of this form to:
Wildlife Heritage Foundation
Attn: Membership
563 Second Street
Suite 120
Lincoln, CA 95648

<%=msg.toString()%>
Thank you very much!
Wildlife Heritage Foundation
www.wildlifeheritage.org <% } else { %> <%@ include file="/common/includes/title.inc"%> <%@ include file="/common/includes/head_content.inc"%>
<%@ include file="/common/includes/header.inc"%>
<%@ include file="/common/includes/leftside_stnd.inc"%>
<%@ include file="/common/includes/about_nav.inc"%>

WHF Membership

<% if ( !doSendMail ) { if ( pageSubmitted ) { %>

MEMBERSHIP NOT COMPLETE!
Please ensure your complete contact information and payment method have been provided below!

<% } %>

Your contact information

All fields below are required.

Your Name
Phone
Email
Address
City
State
Zip

Interested in volunteering?

Provide your areas of interest below:
Advisory Committee
Fundraising Publicity
Habitat Enhancement
Newsletter Articles
Wildlife Education
Wildlife Photography
Other:

Your Payment Type

Check (see instructions below)

To subscribe by check, mail your payment with a completed copy of this form to:

Wildlife Heritage Foundation
Attn: Membership
563 Second Street
Suite 120
Lincoln, CA 95648

<% } if ( pageSubmitted && doSendMail && doPayPal ) { // kept block, but removed code. } %>
<%@ include file="/common/includes/footer_stnd.inc"%>
<% } %>