Form.html Page
- Code: Select all
<form name="apply" id="apply" method="post" action="email.php">
<table width="100%" border="1">
<tr>
<td width="48%"><p><strong>Date of Application:</strong>
<input name="date2" type="text" id="date2" value="mm/dd/yyyy" size="50" />
</p>
<p><strong>Address of Organization:</strong><br />
<textarea name="address" cols="60" rows="4">123 Road
Suite 1A
City, STATE, Zip</textarea>
</p>
<p><strong>Organization Name:</strong>
<input name="orgname" type="text" id="orgname" size="75" />
</p>
<p><strong>Website: </strong>
<input name="website" type="text" id="website" value="http://www.example.com" size="50" />
<br />
</p></td>
<td width="52%"><p><strong><u>Contact Information:</u></strong></p>
<p><strong>Primary Contact: </strong><br />
<input name="NameLast" type="text" id="NameLast" value="Last Name" size="35" />
<input name="NameFirst" type="text" id="NameFirst" value="First Name" size="35" />
<input name="Title" type="text" id="Title" value="Title" size="35" />
<br />
<input name="Email" type="text" id="Email" value="Email" size="35" />
<input name="Phone" type="text" id="Phone" value="Phone" size="35" />
<input name="Fax" type="text" id="Fax" value="Fax" size="35" />
</p>
<p><strong>Secondary Contact:<br />
</strong>
<input name="NameLast2" type="text" id="NameLast2" value="Last Name" size="35" />
<input name="NameFirst2" type="text" id="NameFirst2" value="First Name" size="35" />
<input name="Title2" type="text" id="Title2" value="Title" size="35" />
<br />
<input name="Email2" type="text" id="Email2" value="Email" size="35" />
<input name="Phone2" type="text" id="Phone2" value="Phone" size="35" />
<input name="Fax2" type="text" id="Fax2" value="Fax" size="35" />
<strong><u><br />
<br />
<br />
</u></strong></p></td>
</tr>
</table>
<br />
<hr />
<p><strong><u>Project Information:</u></strong></p>
<table width="100%" border="1">
<tr>
<td width="48%"><p><strong>Explain background of this project and why funds are needed.</strong></p>
<p><strong>
<textarea name="projbkgrnd2" cols="75" rows="10" id="projbkgrnd2"></textarea>
</strong></p></td>
<td width="52%"><p><strong>What is the objective of this project?</strong></p>
<p><strong>
<textarea name="projobjective2" cols="75" rows="10" id="projobjective2"></textarea>
</strong></p></td>
</tr>
<tr>
<td><p><strong>Please summarize the intention of this donation.</strong></p>
<p><strong>
<textarea name="intention2" cols="75" rows="10" id="intention2"></textarea>
</strong></p></td>
<td><p><strong>How will you determine that this project was successful?</strong></p>
<p><strong>
<textarea name="projsuccess2" cols="75" rows="10" id="projsuccess2"></textarea>
</strong></p></td>
</tr>
<tr>
<td><p><strong>What is your organization's formal process in determining grant requests?</strong></p>
<p><strong>
<textarea name="determinerequests" cols="75" rows="10" id="determinerequests"></textarea>
</strong></p></td>
<td><p><strong>How did you hear about our foundation?</strong></p>
<p><strong>
<textarea name="hearaboutus" cols="75" rows="10" id="hearaboutus"></textarea>
</strong></p></td>
</tr>
</table>
<hr />
<p><strong><u>Application Information:</u></strong><br />
<br />
</p>
<table width="100%" border="1">
<tr>
<td width="48%"><strong>Total Annual Budget:</strong>
<input name="Budget" type="text" id="Budget" value="$" size="30" />
<br />
<strong>Amount Being Requested: </strong>
<input name="Request3" type="text" id="Request" value="$" size="30" />
<br />
<strong>Administrative Costs</strong>:
<input name="AdminCosts" type="text" id="AdminCosts" value="$" size="30" />
<br /></td>
<td width="52%"><strong>Next Year's Projected Operating Budget:</strong>
<input name="OperatingBudget" type="text" id="OperatingBudget" value="$" size="30" />
<br />
<strong>Fundraising Costs:</strong>
<input name="FundCosts" type="text" id="FundCosts" value="$" size="30" />
<br />
<strong>Have you received previous funding from R&RFFCF?</strong>
<label>
<select name="previousfunding" id="previousfunding">
<option selected></option>
<option value="Y">Yes</option>
<option value="N">No</option>
</select>
</label>
<br /><input type="hidden" name="FORM2" id="FORM2" /></td>
</tr>
</table>
<p>
<input type="submit" name="Submit" value="Submit" />
<input name="Reset" type="reset" id="Reset" value="Reset" /></p>
</form>
Email.php Page
- Code: Select all
// DECLARE VARIABLES
//$date2 = $_POST['date2'];
$address = $_POST['address'];
$orgname = $_POST['orgname'];
$website = $_POST['website'];
$NameLast = $_POST['NameLast'];
$NameFirst = $_POST['NameFirst'];
$Title = $_POST['Title'];
$Email = $_POST['Email'];
$Phone = $_POST['Phone'];
$Fax = $_POST['Fax'];
$NameLast2 = $_POST['NameLast2'];
$NameFirst2 = $_POST['NameFirst2'];
$Title2 = $_POST['Title2'];
$Email2 = $_POST['Email2'];
$Phone2 = $_POST['Phone2'];
$Fax2 = $_POST['Fax2'];
$projbkgrnd2 = $_POST['projbkgrnd2'];
$projobjective2 = $_POST['projobjective2'];
$intention2 = $_POST['intention2'];
$projsuccess2 = $_POST['projsuccess2'];
$determinerequests = $_POST['determinerequests'];
$hearaboutus = $_POST['hearaboutus'];
$Budget = $_POST['Budget'];
$Request3 = $_POST['Request3'];
$AdminCosts = $_POST['AdminCosts'];
$OperatingBudget = $_POST['OperatingBudget'];
$FundCosts = $_POST['FundCosts'];
$previousfunding = $_POST['previousfunding'];
// END DECLARE
$to = "erik@erikhauser.com";
$subject = "GRANT APPLICATION FORM SUBMISSION";
$email = $_POST['Email'];
$message = 'Date: '.$_POST['date2'];
//$headers = "From: $email"; $sent = mail($to, $subject, $message, $headers); if($sent) {print "Your mail was sent successfully.";} else {print "We encountered an error sending your mail";} echo '<a href="http://www.foosfoundation.com">Back Home</a>';




