Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send Mail Code, /r /n what does it mean???

Status
Not open for further replies.

MrKovacic

IS-IT--Management
Nov 5, 2002
213
US
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

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:&nbsp; 410-287-3160</font>
        </div>
        <div>
          <p align="left" style="word-spacing: 0; margin: 0">
          <font face="Arial" size="2">FAX:&nbsp; 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&nbsp;&nbsp; $Number_of_Employees</td>
            <td width="33%">Credit Requested&nbsp;&nbsp; $Credit_Requested</td>
            <td width="33%">In Business Since&nbsp;&nbsp; $In_Business_Since</td>
          </tr>
          <tr>
            <td width="100%" colspan="3">Business Structure:<p>&nbsp; $Corporation
              | $Partnership | $Proprietorship | $Division_or_Subsidiary</p>
              <table border="0" width="100%" height="282">
                <tr>
                  <td width="49%" colspan="2" height="23">Parent Company&nbsp;&nbsp;&nbsp;&nbsp;
                    $Parent_Company</td>
                  <td width="57%" colspan="2" height="23">In Business for&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    $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&nbsp;&nbsp;&nbsp; $Name1</td>
                  <td width="18%" height="12">Title&nbsp;&nbsp;&nbsp; $Title1</td>
                  <td width="29%" height="12">Address&nbsp;&nbsp;&nbsp; $Address1</td>
                  <td width="25%" height="12">Phone&nbsp;&nbsp;&nbsp; $Phone1</td>
                </tr>
                <tr>
                  <td width="100%" height="11" colspan="4">
                    <hr>
                  </td>
                </tr>
                <tr>
                  <td width="28%" height="12">Name&nbsp;&nbsp;&nbsp; $Name2</td>
                  <td width="18%" height="12">Title&nbsp;&nbsp;&nbsp; $Title2</td>
                  <td width="29%" height="12">Address&nbsp;&nbsp;&nbsp; $Address2</td>
                  <td width="25%" height="12">Phone&nbsp;&nbsp;&nbsp; $Phone2</td>
                </tr>
                <tr>
                  <td width="100%" height="11" colspan="4">
                    <hr>
                  </td>
                </tr>
                <tr>
                  <td width="28%" height="12">Name&nbsp;&nbsp;&nbsp; $Name3</td>
                  <td width="18%" height="12">Title&nbsp;&nbsp;&nbsp; $Title3</td>
                  <td width="29%" height="12">Address&nbsp;&nbsp;&nbsp; $Address3</td>
                  <td width="25%" height="12">Phone&nbsp;&nbsp;&nbsp; $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&nbsp;&nbsp;</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">&nbsp;&nbsp; $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">&nbsp;&nbsp;&nbsp;
                    $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">&nbsp;&nbsp;&nbsp;
                    $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">&nbsp;&nbsp;&nbsp;
                    $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">&nbsp;&nbsp;
                    $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">&nbsp;&nbsp;&nbsp;
                    $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">&nbsp;&nbsp;&nbsp;
                    $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">&nbsp;&nbsp;&nbsp;
                    $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">&nbsp;&nbsp;
                    $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">&nbsp;&nbsp;&nbsp;
                    $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">&nbsp;&nbsp;&nbsp;
                    $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">&nbsp;&nbsp;&nbsp;
                    $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">&nbsp;&nbsp;
                    $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">&nbsp;&nbsp;&nbsp;
                    $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">&nbsp;&nbsp;&nbsp;
                    $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">&nbsp;&nbsp;&nbsp;
                    $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">&nbsp;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.&nbsp;</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:&nbsp;</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

&quot;&quot;&quot; &quot;&quot;&quot;
(o) (O)
\____/
 
MrKovacic said:
I know I am missing some slashes near the quotes, but I dont know where they go.
How about before every single double quote in your message body.

If you code a string using double quotes, then you need to add a backslash to escape any double quotes you want to put in the string. You did this:
Code:
$body = "
<Removed massive block of HTML>
";
Therefore, you have to escape every single double quote in that HTML block. If you don't, the parser will interpret the first unescaped double-quote as ending the string, which is not what you want.

If you don't have an editor that does PHP syntax highlighting, I'd recommend you get one, as it will make this error easier to see.
 
Actually, I use Crimson, but, certain words like FOR and IF are highlighted also, so just put a \ before every highlighted word and "
?

thats no problem at all. As for that mailer script, I already have the script exactly as i need it, so I didnt want to encorporate additional code if I dont need it. Thanks though!

Thank you!!!!!!!!!!

Thank you!!!

Mike Kovacic
 
Would this work better?

Also, for the word " FOR "

would that be F\OR OR \F\OR


thanks in advance!
Code:
<?php
@extract($_POST);
$name = stripslashes($name);
$Legal = stripslashes($Legal);
$State = stripslashes($State);
$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:&nbsp; 410-287-3160</font>
        </div>
        <div>
          <p align=\"left\" style=\"word-spacing: 0; margin: 0\">
          <font face=\"Arial\" size=\"2\">FAX:&nbsp; 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&nbsp;&nbsp; $Number_of_Employees</td>
            <td width=\"33%\">Credit Requested&nbsp;&nbsp; $Credit_Requested</td>
            <td width=\"33%\">In Business Since&nbsp;&nbsp; $In_Business_Since</td>
          </tr>
          <tr>
            <td width=\"100%\" colspan=\"3\">Business Structure:<p>&nbsp; $Corporation
              | $Partnership | $Proprietorship | $Division_or_Subsidiary</p>
              <table border=\"0\" width=\"100%\" height=\"282\">
                <tr>
                  <td width=\"49%\" colspan=\"2\" height=\"23\">Parent Company&nbsp;&nbsp;&nbsp;&nbsp;
                    $Parent_Company</td>
                  <td width=\"57%\" colspan=\"2\" height=\"23\">In Business f\or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    $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 \F\OR BUSINESS TRANSACTIONS</b></font></td>
                </tr>
                <tr>
                  <td width=\"106%\" colspan=\"4\" height=\"16\">
                    <hr>
                  </td>
                </tr>
                <tr>
                  <td width=\"28%\" height=\"12\">Name&nbsp;&nbsp;&nbsp; $Name1</td>
                  <td width=\"18%\" height=\"12\">Title&nbsp;&nbsp;&nbsp; $Title1</td>
                  <td width=\"29%\" height=\"12\">Address&nbsp;&nbsp;&nbsp; $Address1</td>
                  <td width=\"25%\" height=\"12\">Phone&nbsp;&nbsp;&nbsp; $Phone1</td>
                </tr>
                <tr>
                  <td width=\"100%\" height=\"11\" colspan=\"4\">
                    <hr>
                  </td>
                </tr>
                <tr>
                  <td width=\"28%\" height=\"12\">Name&nbsp;&nbsp;&nbsp; $Name2</td>
                  <td width=\"18%\" height=\"12\">Title&nbsp;&nbsp;&nbsp; $Title2</td>
                  <td width=\"29%\" height=\"12\">Address&nbsp;&nbsp;&nbsp; $Address2</td>
                  <td width=\"25%\" height=\"12\">Phone&nbsp;&nbsp;&nbsp; $Phone2</td>
                </tr>
                <tr>
                  <td width=\"100%\" height=\"11\" colspan=\"4\">
                    <hr>
                  </td>
                </tr>
                <tr>
                  <td width=\"28%\" height=\"12\">Name&nbsp;&nbsp;&nbsp; $Name3</td>
                  <td width=\"18%\" height=\"12\">Title&nbsp;&nbsp;&nbsp; $Title3</td>
                  <td width=\"29%\" height=\"12\">Address&nbsp;&nbsp;&nbsp; $Address3</td>
                  <td width=\"25%\" height=\"12\">Phone&nbsp;&nbsp;&nbsp; $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&nbsp;&nbsp;</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\">&nbsp;&nbsp; $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\">&nbsp;&nbsp;&nbsp;
                    $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\">&nbsp;&nbsp;&nbsp;
                    $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\">&nbsp;&nbsp;&nbsp;
                    $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\">&nbsp;&nbsp;
                    $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\">&nbsp;&nbsp;&nbsp;
                    $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\">&nbsp;&nbsp;&nbsp;
                    $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\">&nbsp;&nbsp;&nbsp;
                    $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\">&nbsp;&nbsp;
                    $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\">&nbsp;&nbsp;&nbsp;
                    $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\">&nbsp;&nbsp;&nbsp;
                    $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\">&nbsp;&nbsp;&nbsp;
                    $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\">&nbsp;&nbsp;
                    $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\">&nbsp;&nbsp;&nbsp;
                    $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\">&nbsp;&nbsp;&nbsp;
                    $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\">&nbsp;&nbsp;&nbsp;
                    $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\">&nbsp;I hereby
                    certify that the information in this credit application is
                    correct. The information included in this credit application
                    is \f\or u\se 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.&nbsp;</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:&nbsp;</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.";
?>



Thank you!!!

Mike Kovacic
 
no need to escape the fors, ifs, etc. they were highlighted because your first double-quote was being interpreted as the end of the string. once you escape all double quotes, the highlighting of the reserved words should go away.



*cLFlaVA
----------------------------
[tt]( <P> <B>)13 * (<P> <.</B>)[/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top