Let's get started shall we?
Here is the form:
HTML:
<form id="form3" name="form2" method="post" action="">
<table width="800" border="0" align="center">
<tr>
<td colspan="4" align="center"><strong>FINANCING INFORMATION</strong></td>
</tr>
<tr>
<td width="130">Purpose of Financing</td>
<td colspan="3"><p>
<label>
<input type="radio" name="RGpurposeFinan" value="radio" id="RGpurposeFinan_0" tabindex="1" />
Materials</label>
<label>
<input type="radio" name="RGpurposeFinan" value="radio" id="RGpurposeFinan_1" tabindex="2" />
Equipment</label>
<label>
<input type="radio" name="RGpurposeFinan" value="radio" id="RGpurposeFinan_2" tabindex="3" />
Inventory</label>
<label>
<input type="radio" name="RGpurposeFinan" value="radio" id="RGpurposeFinan_3" tabindex="4" />
Supplies</label>
<label>
<input type="radio" name="RGpurposeFinan" value="radio" id="RGpurposeFinan_4" tabindex="5" />
Working Capital</label>
<br />
</p></td>
</tr>
<tr>
<td>Collateral</td>
<td width="244"><input type="text" name="collateral" id="collateral" tabindex="6" /></td>
<td width="150">Guarantor(s)' Name(s)</td>
<td width="258"><input type="text" name="guarantorsName" id="guarantorsName" tabindex="8" /></td>
</tr>
<tr>
<td>Guarantors</td>
<td><input type="text" name="guarantors" id="guarantors" tabindex="7" /></td>
<td>Guarantor(s)' Address(es)</td>
<td><input type="text" name="guarantorAddress" id="guarantorAddress" tabindex="9" /></td>
</tr>
<tr>
<td colspan="4"> </td>
</tr>
<tr>
<td colspan="4"><em>This is to certify that I/We have provided accurate information in good faith with the intent of obtaining a loan for the purposes expressed in this application. Further, I/We have fully disclosed all information as requested on this application and all other supporting documents submitted with the intent of obtaining financing. I/We fully under stand that delivery of fraudulent information with the intent to defraud <strong>National Express Credit, LLC</strong> its funding sources, or agents may result criminal prosecution.</em></td>
</tr>
<tr>
<td>Applicant</td>
<td><input type="text" name="applicant" id="applicant" tabindex="10" /></td>
<td>Company Name</td>
<td><input type="text" name="companyName" id="companyName" tabindex="11" /></td>
</tr>
</table>
<p> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</p>
<table width="800" align="center">
<tr>
<td width="131"><label for="principalsName">Principal(s) Name</label></td>
<td width="241"><input type="text" name="principalsName" id="principalsName" tabindex="12" /></td>
<td width="155">Percent Ownership</td>
<td width="253"><input type="text" name="percentOwner" id="percentOwner" tabindex="14" /></td>
</tr>
<tr>
<td><label for="principalSignature">Principal(s) Signature</label></td>
<td><input type="text" name="principalSignature" id="principalSignature" tabindex="13" /></td>
<td><label for="date">Date</label></td>
<td><input type="text" name="date" id="date" tabindex="15" /></td>
</tr>
<tr>
<td><label for="principalName2">Principal(s) Name</label></td>
<td><input type="text" name="principalName2" id="principalName2" tabindex="16" /></td>
<td><label for="percentOwner2">Percent Ownership</label></td>
<td><input type="text" name="percentOwner2" id="percentOwner2" tabindex="18" /></td>
</tr>
<tr>
<td><label for="principalSignature2">Principal(s) Signature</label></td>
<td><input type="text" name="principalSignature2" id="principalSignature2" tabindex="17" /></td>
<td><label for="date2">Date</label></td>
<td><input type="text" name="date2" id="date2" tabindex="19" /></td>
</tr>
<tr>
<td><label for="principalName3">Principal(s) Name</label></td>
<td><input type="text" name="principalName3" id="principalName3" tabindex="18" /></td>
<td><label for="percentOwner3">Percent Ownership</label></td>
<td><input type="text" name="percentOwner3" id="percentOwner3" tabindex="20" /></td>
</tr>
<tr>
<td><label for="principalSignature4">Principal(s) Signature</label></td>
<td><input type="text" name="principalSignature3" id="principalSignature4" tabindex="19" /></td>
<td><label for="date3">Date</label></td>
<td><input type="text" name="date3" id="date3" tabindex="21" /></td>
</tr>
<tr>
<td><label for="principalName4">Principal Name</label></td>
<td><input type="text" name="principalName4" id="principalName4" tabindex="22" /></td>
<td><label for="percentOwner4">Percent Owner</label></td>
<td><input type="text" name="percentOwner4" id="percentOwner4" tabindex="24" /></td>
</tr>
<tr>
<td><label for="principalSignature5">Principal Signature</label></td>
<td><input type="text" name="principalSignature4" id="principalSignature5" tabindex="23" /></td>
<td><label for="date4">Date</label></td>
<td><input type="text" name="date4" id="date4" tabindex="25" /></td>
</tr>
</table>
<p align="right"><a href="javascript:previousForm();"> <strong> <font size="4">Previous</font> </strong> </a></p>
<p align="right"><strong> <font size="4">Finish</font> </strong> </a></p>
</form>
</div>
<div id="main_text">
<form id="form1" name="form1" method="post" action="">
<table width="818" id="table2">
<tr>
<td height="29" colspan="2"><strong>PRINCIPAL OWNER INFORMATION</strong></td>
<td>Employer Tax ID Number </td>
<td><input type="text" name="employerTaxID" id="employerTaxID" tabindex="21" /></td>
</tr>
<tr>
<td width="122">Social Security #</td>
<td width="265"><input name="socialSec" type="text" id="socialSec2" size="10" maxlength="10" tabindex="1" /></td>
<td width="169">Business Status</td>
<td width="242"><label>
<input type="radio" name="RGbusinessStat" value="radio" id="RGbusinessStat_0" tabindex="22" />
Start Up</label>
<label>
<input type="radio" name="RGbusinessStat" value="radio" id="RGbusinessStat_1" tabindex="23" />
Existing</label></td>
</tr>
<tr>
<td>Principal Owner's Name</td>
<td><input name="ownersName" type="text" id="ownersName" size="30" tabindex="2" /></td>
<td>Year Established (MM/DD/YYYY)</td>
<td><input name="yearEstablishedB" type="text" id="yearEstablishedB" tabindex="24" size="10" /></td>
</tr>
<tr>
<td>Address</td>
<td><input name="address" type="text" id="address" size="40" tabindex="3" /></td>
<td>Legal Structure (Choose One)</td>
<td><label>
<input type="radio" name="RGlegalStruc" value="radio" id="RGlegalStruc_0" tabindex="25" />
Sole Propietor</label>
<label>
<input type="radio" name="RGlegalStruc" value="radio" id="RGlegalStruc_1" tabindex="26" />
Partnership</label>
<br />
<label>
<input type="radio" name="RGlegalStruc" value="radio" id="RGlegalStruc_2" tabindex="27" />
Corporation</label>
<label>
<input type="radio" name="RGlegalStruc" value="radio" id="RGlegalStruc_3" tabindex="28" />
Other</label></td>
</tr>
<tr>
<td>City</td>
<td><input name="city" type="text" id="city" size="20" tabindex="4" /></td>
<td colspan="2"><strong>BUSINESS DEMOGRAPHICS</strong></td>
</tr>
<tr>
<td>State</td>
<td><input name="state" type="text" id="state" size="5" tabindex="5" /></td>
<td><label for="businessRev">Business Revenue<br />
</label></td>
<td><p>
<label>
<input type="radio" name="RGbusinessRev" value="radio" id="RGbusinessRev_0" tabindex="29" />
Actual</label>
<label>
<input type="radio" name="RGbusinessRev" value="radio" id="RGbusinessRev_1" tabindex="30" />
Proposed 12 Mos</label>
<br />
<input name="businessRev" type="text" id="businessRev" size="30" tabindex="31" />
<br />
</p></td>
</tr>
<tr>
<td>Zip</td>
<td><input name="zip" type="text" id="zip" size="10" tabindex="6" /></td>
<td><label for="noEmployees">Number of Employees</label></td>
<td><input type="text" name="noEmployees" id="noEmployees" tabindex="32" /></td>
</tr>
<tr>
<td>Country</td>
<td><input name="country" type="text" id="country" size="15" tabindex="7" /></td>
<td><p>Number of Jobs<br />
</p></td>
<td><label>
<input type="radio" name="RGnoJobs" value="radio" id="RGnoJobs_0" tabindex="33" />
Created</label>
<input type="radio" name="RGnoJobs" value="radio" id="RGnoJobs_1" tabindex="34" />
Retained<br /></td>
</tr>
<tr>
<td>Phone Number</td>
<td><input name="phoneNumber" type="text" id="phoneNumber" size="12" tabindex="8" /></td>
<td colspan="2"><strong>OTHER COMPLIANCE INFORMATION</strong></td>
</tr>
<tr>
<td>Fax</td>
<td><input name="fax" type="text" id="fax" size="12" tabindex="9" /></td>
<td>Business In Emp Zone</td>
<td><p>
<label>
<input type="radio" name="RGempZone" value="radio" id="RGempZone_0" tabindex="35" />
Yes</label>
<label>
<input type="radio" name="RGempZone" value="radio" id="RGempZone_1" tabindex="36" />
No</label>
<br />
</p></td>
</tr>
<tr>
<td>Two References<br />
(name and telephone)</td>
<td><input name="references" type="text" id="references" size="30" tabindex="10" /></td>
<td>Business In Ent Zone</td>
<td><p>
<label>
<input type="radio" name="RGentZone" value="radio" id="RGentZone_0" tabindex="37" />
Yes</label>
<label>
<input type="radio" name="RGentZone" value="radio" id="RGentZone_1" tabindex="38" />
No</label>
<br />
<br />
</p></td>
</tr>
<tr>
<td height="23" colspan="2"><strong>BUSINESS INFORMATION</strong></td>
<td>Principal Is Low Income</td>
<td><p>
<label>
<input type="radio" name="RGlowIncome" value="radio" id="RGlowIncome_0" tabindex="39" />
Yes</label>
<label>
<input type="radio" name="RGlowIncome" value="radio" id="RGlowIncome_1" tabindex="40" />
No</label>
<br />
</p></td>
</tr>
<tr>
<td>Business Name </td>
<td><input name="businessName" type="text" id="businessName" tabindex="11" size="30" /></td>
<td colspan="2"><strong>LOAN INFORMATION (PROPOSED BY PRINCIPAL)</strong></td>
</tr>
<tr>
<td>Business Type</td>
<td><input type="text" name="businessType" id="businessType" tabindex="12" /></td>
<td><label for="amountLoanReq">Amount of Loan Request</label></td>
<td><p>
<input name="amountLoanReq" type="text" id="amountLoanReq" tabindex="41
" size="15" />
<br />
</p></td>
</tr>
<tr>
<td>Product or Service </td>
<td><input type="text" name="productService" id="productService" tabindex="13" /></td>
<td><label for="interestRate">Interest Rate</label></td>
<td><input name="interestRate" type="text" id="interestRate" tabindex="42" size="8" /></td>
</tr>
<tr>
<td>Address</td>
<td><input name="businessAddress" type="text" id="businessAddress" tabindex="14" size="40" /></td>
<td><label for="requestLoanTerm">Request Loan Term</label></td>
<td><input name="requestLoanTerm" type="text" id="requestLoanTerm" tabindex="43" size="10" /></td>
</tr>
<tr>
<td>City</td>
<td><input name="businessCity" type="text" id="businessCity" tabindex="15" size="20" /></td>
<td><label for="RecommLoanTerm">Recommended Loan Term</label></td>
<td><input name="RecommLoanTerm" type="text" id="RecommLoanTerm" tabindex="44" size="10" /></td>
</tr>
<tr>
<td>State</td>
<td><input name="businessState" type="text" id="businessState" tabindex="16" size="5" /></td>
<td><label for="monthLOanPay">Monthly Loan Payment</label></td>
<td><input name="monthLOanPay" type="text" id="monthLOanPay" tabindex="45" size="10" /></td>
</tr>
<tr>
<td>Zip</td>
<td><input name="businessZip" type="text" id="businessZip" tabindex="17" size="10" /></td>
<td><label for="annualDebtS">Annual Debt Service</label></td>
<td><input name="annualDebtS" type="text" id="annualDebtS" tabindex="46" size="10" /></td>
</tr>
<tr>
<td>Country</td>
<td><input name="businessCountry" type="text" id="businessCountry" tabindex="18" size="15" /></td>
<td><label for="maturityDate">Maturity Date</label></td>
<td><input name="maturityDate" type="text" id="maturityDate" tabindex="47" size="10" /></td>
</tr>
<tr>
<td>Phone Number </td>
<td><input name="businessPhone" type="text" id="businessPhone" tabindex="19" size="12" /></td>
<td colspan="2" rowspan="2" align="right"><a href="javascript:nextForm();" onclick="scroll(0,0)"> <strong> <font size="4">Next </font> </strong> </a></td>
</tr>
<tr>
<td>Fax</td>
<td><input name="businessFax" type="text" id="businessFax" tabindex="20" size="12" /></td>
</tr>
</table>
</form>
First things I noticed:
You don't have an action for the form... (this needs to be the php page)
You don't have a submit button for the form...Ignoring those lets get onto the PHP...
First thing to do is get all the information from the form...
Here is how I would do it:
PHP:
$RGpurposeFinan = $_POST['RGpurposeFinan'];
Where $RGpurposeFinan is the variable name.
$_POST reads the form for the input with the name: RGpurposeFinan
The same should be done with all inputs:
PHP:
$collateral = $_POST['collateral'];
$guarantorsName = $_POST['guarantorsName'];
$guarantors = $_POST['guarantors'];
...
...
$businessFax = $_POST['businessFax'];
Once you have that done test to make sure you got the variables correctly by echoing them...
Once you are done let me know and we can get onto some basic error trapping before sending the email.