Ok, I have created a credit app form, that once submitted, will get sent out to an email. I would like the e-mail portion formatted, so it prints nice, but putting HTML in the
dosent work.
Here is the processing script I created, I know I am missing some slashes near the quotes, but I dont know where they go. ;\
Here is the code....
Any help on this would be supurb!!!
Thanks in advance!
Thank you!!!
Mike Kovacic
""" """
(o) (O)
\____/
Code:
$message = " Here is my <b> EMAIL FORM </b>, I hope you like it"
dosent work.
Here is the processing script I created, I know I am missing some slashes near the quotes, but I dont know where they go. ;\
Here is the code....
Code:
<?php
@extract($_POST);
$name = stripslashes($name);
$Legal = stripslashes($Legal);
$State = stripslashes($State);
>>> CODE TRUNCATED <<<
$to = "mikekovacic@gmail.com";
$about = "FORM FILL";
$header = "location:index.htm";
$body = "
<html>
<p><font size="7">Credit Application</font> </p>
<table border="0" width="100%">
<tr>
<td width="31%"></td>
<td width="44%" align="center">
<div>
<p align="left" style="word-spacing: 0; margin: 0">
<font face="Arial" size="4">E.J. Sprague Co.</font>
</div>
<div>
<p align="left" style="word-spacing: 0; margin: 0">
<font face="Arial" size="2">1652 West Pulaski Highway</font>
</div>
<div>
<p align="left" style="word-spacing: 0; margin: 0">
<font face="Arial" size="2">Elkton, MD 21921</font>
</div>
<div>
<p align="left" style="word-spacing: 0; margin: 0">
<font face="Arial" size="2">phone: 410-287-3160</font>
</div>
<div>
<p align="left" style="word-spacing: 0; margin: 0">
<font face="Arial" size="2">FAX: 410-287-0271</font>
</div>
</td>
<td width="25%"></td>
</tr>
</table>
<table border="0" width="100%">
<tr>
<td width="100%">
<div align="center">
<center>
<table border="0" width="90%" height="138">
<tr>
<td width="100%" colspan="6" valign="top" bgcolor="#000000" height="18"><font size="2" color="#FFFFFF" face="Arial"><b>BUSINESS
INFORMATION</b></font></td>
</tr>
<tr>
<td width="12%" height="29">Legal (If different)</td>
<td width="7%" height="29">$Legal</td>
<td width="7%" height="29"></td>
<td width="1%" height="29">State</td>
<td width="14%" height="29">$State</td>
<td width="6%" height="29"></td>
</tr>
<tr>
<td width="12%" height="29">Name of business</td>
<td width="11%" height="29">$Name_of_business</td>
<td width="11%" height="29"></td>
<td width="3%" height="29">Zip</td>
<td width="18%" height="29">$Zip</td>
<td width="10%" height="29"></td>
</tr>
<tr>
<td width="12%" height="29">Address</td>
<td width="11%" height="29">$Address</td>
<td width="11%" height="29"></td>
<td width="3%" height="29">Phone</td>
<td width="18%" height="29">$Phone</td>
<td width="10%" height="29"></td>
</tr>
<tr>
<td width="12%" height="15">City</td>
<td width="11%" height="15">$City</td>
<td width="11%" height="15"></td>
<td width="3%" height="15">Fax</td>
<td width="18%" height="15">$Fax</td>
<td width="10%" height="15"></td>
</tr>
<tr>
<td width="12%" height="14">Type of business</td>
<td width="22%" height="14" colspan="2">$Type_of_business</td>
<td width="3%" height="14">Email</td>
<td width="18%" height="14">$Email</td>
<td width="10%" height="14"></td>
</tr>
</table>
</center>
</div>
<div align="center">
<center>
<table border="0" width="90%">
<tr>
<td width="100%" colspan="3" bgcolor="#000000"><font size="2" color="#FFFFFF" face="Arial"><b>DESCRIPTION
OF BUSINESS</b></font></td>
</tr>
<tr>
<td width="34%">Number of Employees $Number_of_Employees</td>
<td width="33%">Credit Requested $Credit_Requested</td>
<td width="33%">In Business Since $In_Business_Since</td>
</tr>
<tr>
<td width="100%" colspan="3">Business Structure:<p> $Corporation
| $Partnership | $Proprietorship | $Division_or_Subsidiary</p>
<table border="0" width="100%" height="282">
<tr>
<td width="49%" colspan="2" height="23">Parent Company
$Parent_Company</td>
<td width="57%" colspan="2" height="23">In Business for
$In_Business_for</td>
</tr>
<tr>
<td width="106%" colspan="4" height="23"></td>
</tr>
<tr>
<td width="106%" colspan="4" bgcolor="#000000" height="16"><font size="2" color="#FFFFFF" face="Arial"><b>COMPANY/PRINCIPALS
RESPONSIBLE FOR BUSINESS TRANSACTIONS</b></font></td>
</tr>
<tr>
<td width="106%" colspan="4" height="16">
<hr>
</td>
</tr>
<tr>
<td width="28%" height="12">Name $Name1</td>
<td width="18%" height="12">Title $Title1</td>
<td width="29%" height="12">Address $Address1</td>
<td width="25%" height="12">Phone $Phone1</td>
</tr>
<tr>
<td width="100%" height="11" colspan="4">
<hr>
</td>
</tr>
<tr>
<td width="28%" height="12">Name $Name2</td>
<td width="18%" height="12">Title $Title2</td>
<td width="29%" height="12">Address $Address2</td>
<td width="25%" height="12">Phone $Phone2</td>
</tr>
<tr>
<td width="100%" height="11" colspan="4">
<hr>
</td>
</tr>
<tr>
<td width="28%" height="12">Name $Name3</td>
<td width="18%" height="12">Title $Title3</td>
<td width="29%" height="12">Address $Address3</td>
<td width="25%" height="12">Phone $Phone3</td>
</tr>
<tr>
<td width="100%" height="11" colspan="4">
<hr>
</td>
</tr>
<tr>
<td width="102%" colspan="4" bgcolor="#000000" height="16"><font size="2" color="#FFFFFF" face="Arial"><b>BANK
</b></font><font size="2" color="#FFFFFF" face="Arial"><b>REFERENCES</b></font></td>
</tr>
<tr>
<td width="30%" height="19">Name of bank </td>
<td width="20%" height="19">$Name_of_bank</td>
<td width="28%" height="19">Name to contact</td>
<td width="24%" height="19">$Name_to_contact</td>
</tr>
<tr>
<td width="30%" height="19">Branch</td>
<td width="20%" height="19">$Branch</td>
<td width="28%" height="19">Address</td>
<td width="24%" height="19">$Address</td>
</tr>
<tr>
<td width="30%" height="12">Checking Account Number</td>
<td width="20%" height="12">$Checking_Account_Number</td>
<td width="28%" height="12">Telephone Number</td>
<td width="24%" height="12">$Telephone_Number</td>
</tr>
<tr>
<td width="106%" colspan="4" height="4" bgcolor="#000000"><font size="2" color="#FFFFFF" face="Arial"><b>TRADE
REFERENCES</b></font></td>
</tr>
<tr>
<td width="106%" colspan="4" height="4">
<hr>
</td>
</tr>
<tr>
<td width="28%" height="2">
<p style="margin-top: 0; margin-bottom: 0">Firm Name</p>
<p style="margin-top: 0; margin-bottom: 0"> $Firm_Name1</td>
<td width="18%" height="2">
<p style="margin-top: 0; margin-bottom: 0">Contact Name</p>
<p style="margin-top: 0; margin-bottom: 0">
$Contact_Name1</td>
<td width="29%" height="2">
<p style="margin-top: 0; margin-bottom: 0">Telephone Number</p>
<p style="margin-top: 0; margin-bottom: 0">
$Telephone_Number1</td>
<td width="25%" height="2">
<p style="margin-top: 0; margin-bottom: 0">Account open
since</p>
<p style="margin-top: 0; margin-bottom: 0">
$Account_open_since1</td>
</tr>
<tr>
<td width="100%" height="1" colspan="4">
<hr>
</td>
</tr>
<tr>
<td width="28%" height="2">
<p style="margin-top: 0; margin-bottom: 0">Firm Name</p>
<p style="margin-top: 0; margin-bottom: 0">
$Firm_Name2</td>
<td width="18%" height="2">
<p style="margin-top: 0; margin-bottom: 0">Contact Name</p>
<p style="margin-top: 0; margin-bottom: 0">
$Contact_Name2</td>
<td width="29%" height="2">
<p style="margin-top: 0; margin-bottom: 0">Telephone Number</p>
<p style="margin-top: 0; margin-bottom: 0">
$Telephone_Number2</td>
<td width="25%" height="2">
<p style="margin-top: 0; margin-bottom: 0">Account open
since</p>
<p style="margin-top: 0; margin-bottom: 0">
$Account_open_since2</td>
</tr>
<tr>
<td width="100%" height="1" colspan="4">
<hr>
</td>
</tr>
<tr>
<td width="28%" height="2">
<p style="margin-top: 0; margin-bottom: 0">Firm Name</p>
<p style="margin-top: 0; margin-bottom: 0">
$Firm_Name3</td>
<td width="18%" height="2">
<p style="margin-top: 0; margin-bottom: 0">Contact Name</p>
<p style="margin-top: 0; margin-bottom: 0">
$Contact_Name3</td>
<td width="29%" height="2">
<p style="margin-top: 0; margin-bottom: 0">Telephone Number</p>
<p style="margin-top: 0; margin-bottom: 0">
$Telephone_Number3</td>
<td width="25%" height="2">
<p style="margin-top: 0; margin-bottom: 0">Account open
since</p>
<p style="margin-top: 0; margin-bottom: 0">
$Account_open_since3</td>
</tr>
<tr>
<td width="100%" height="1" colspan="4">
<hr>
</td>
</tr>
<tr>
<td width="28%" height="2">
<p style="margin-top: 0; margin-bottom: 0">Firm Name</p>
<p style="margin-top: 0; margin-bottom: 0">
$Firm_Name4</td>
<td width="18%" height="2">
<p style="margin-top: 0; margin-bottom: 0">Contact Name</p>
<p style="margin-top: 0; margin-bottom: 0">
$Contact_Name4</td>
<td width="29%" height="2">
<p style="margin-top: 0; margin-bottom: 0">Telephone Number</p>
<p style="margin-top: 0; margin-bottom: 0">
$Telephone_Number4</td>
<td width="25%" height="2">
<p style="margin-top: 0; margin-bottom: 0">Account open
since</p>
<p style="margin-top: 0; margin-bottom: 0">
$Account_open_since4</td>
</tr>
<tr>
<td width="100%" height="1" colspan="4">
<hr>
</td>
</tr>
<tr>
<td width="106%" height="3" colspan="4" bgcolor="#000000">
<p align="center"><b><font size="2" color="#FFFFFF" face="Arial">CONFIRMATION
OF INFORMATION ACCURACY AND RELEASE OF AUTHORITY TO VERIFY</font></b></td>
</tr>
<tr>
<td width="100%" height="3" colspan="4"><font face="Arial"> I hereby
certify that the information in this credit application is
correct. The information included in this credit application
is for use by the company in determining the amount and
conditions of credit to be extended. I understand that the
company may also contact other sources of credit information
which it considers necessary in making this determination.
Further, I hereby authorize the bank and trade references
listed in this credit application to release the information
necessary to assist the company in establishing a line of
credit. </font></td>
</tr>
<tr>
<td width="28%" height="3">If you agree, type your full name
here:</td>
<td width="18%" height="3">$Name_Of_Agree</td>
<td width="29%" height="3">Title: $Title_Of_Agree</td>
<td width="25%" height="3">Today's Date: $Date_Of_Agree</td>
</tr>
</center>
<tr>
<td width="106%" colspan="4" height="3">
<p align="center"><b>POLICY STATEMENT: </b> INITIAL
ORDERS FROM NEW ACCOUNTS WILL NOT BE PROCESSED UNLESS
ACCOMPANIED BY THE ABOVE REQUESTED INFORMATION.
<p align="center"><b>TERMS: </b>NET 30 DAYS FROM DATE OF
INVOICE UNLESS OTHERWISE STATED.</p>
<p align="center">This form was submitted.</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
";
mail($to,$about,$body,$header);
echo "Mail Sent.";
?>
Any help on this would be supurb!!!
Thanks in advance!
Thank you!!!
Mike Kovacic
""" """
(o) (O)
\____/