PHP script This is my last revision for testing.
<HTML>
<BODY BGCOLOR="#565a67" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
<LINK href="coryhicksCSS.css" rel=stylesheet>
<TABLE width="100%" height="100%">
<TR>
<TD align="center"> </TD>
</TR>
<TR>
<TD>
<?php
if ((!$PlacedBy ) or (!$PhoneNumber) && (!$Email)) {
echo "Please Enter a Contact Name and either a Telephone Number or an
Email address for Contact purpose's.
Thank You";
echo "<p>";
echo "Please use the 'Back' button to continue.";
echo "</p>";
echo "<a href='../html/accountPlacement.html' onclick='self.history.back();'>Back</a>";
exit;
}
//build email headers
$mailFrom = "From: $PlacedBy <$Email>";
$mailTo ="mweining@miphi.com";
$mailSubject = "CHA Account Placement";
$mailMessage=
"Hello, I would like to place an account for collections with Cory Hicks and Associates. My information is
as follows:
Company Name: $CompanyName Date: $Date
Phone: $PhoneNumber Placed By: $PlacedBy
Debtor's Name: $Debtor
Address: $DebtorAdd
City: $DebtorCity State: $DebtorState Zip: $DebtorZip
Contact: $DebtorContact Phone: $DebtorPhone
Email: $DebtorEmail 2nd Phone: $DebtorPhone2
Reference Number: $RefNumber Fax: $FaxNumber
DOCUMENTATION
My included documents are:
// Included list here
$Included[]
My available documents are:
//Available list here
for($a=0; $a < count($Available); $a++){
if(isset($Available[$a])){
$Available[$a].'<br>';
}
}
APPROACH
I would like the approach to be $Approach.
REASON FOR NON-PAYMENT:
$NPReasons
ACCOUNT INFORMATION:
Last Invoice Date: $LastInvoice
Last Date Paid: $LastPaid
Amount Placed: $AmountPlaced
Add-Ons: $AddOns
Total Placed: $TotalPlaced
DESCRIPTION OF PRODUCT/SERVICE:
$ProductDesc";
$responseMessage=
"Hello, I would like to place an account for collections with Cory Hicks and Associates. My information is
as follows:<br><br>
<TABLE border=1 width=670>
<TR>
<TD class='whitel'>
Company Name: $CompanyName
</TD>
<TD class='whitel'>
Date: $Date
</TD>
</TR>
<TR>
<TD class='whitel'>
Phone: $PhoneNumber
</TD>
<TD class='whitel'>
Placed By: $PlacedBy
<TD>
</TR>
</TABLE><BR><BR>
<TABLE WIDTH=670 BORDER=1>
<TR>
<TD colspan=4 class='whitel'>
Debtor's Name: $Debtor
<TD>
</TR>
<TR>
<TD colspan=4 class='whitel'>
Address: $DebtorAdd
</TD>
</TR>
<TR>
<TD class='whitel'>
City: $DebtorCity
</TD>
<TD class='whitel'>
State: $DebtorState
<TD colspan=2 class='whitel'>
Zip: $DebtorZip
<TD>
</TR>
<tr>
<td class='whitel' height=24 colspan=2 >
Contact: $DebtorContact
</td>
<td class='whitel' colspan=2 >
Phone: $DebtorPhone
</td>
</tr>
<tr>
<td class='whitel' height=24 colspan=2 >
Email: $DebtorEmail
</td>
<td class='whitel' colspan=2 >
2nd Phone: $DebtorPhone2
</td>
</tr>
<tr>
<td class='whitel' height=24 colspan=2 >
Reference Number: $RefNumber
</td>
<td class='whitel' colspan=2 >
Fax: $FaxNumber
</td>
</tr>
</TABLE>
<TABLE WIDTH=670>
<TR>
<TD class=whitel>
DOCUMENTATION
<TD>
</TR>
<TR>
<TD class=whitel>
My included documents are:
$Included
</TD>
<TR>
<TR><TD></TD><TR>
<TR>
<TD class=whitel>
My available documents are:
$Available
</TD>
</TR>
<TABLE>
<BR>
<FONT color='#ffffff'>
APPROACH<BR>
I would like the approach to be $Approach.<BR>
<BR>
REASON FOR NON-PAYMENT:<BR>
$NPReasons
<BR><BR>
ACCOUNT INFORMATION:<BR>
Last Invoice Date: $LastInvoice<BR>
Last Date Paid: $LastPaid<BR>
Amount Placed: $AmountPlaced<BR>
Add-Ons: $AddOns<BR>
Total Placed: $TotalPlaced<BR>
<BR>
DESCRIPTION OF PRODUCT/SERVICE:<BR>
$ProductDesc
</FONT>";
mail("$mailTo","$mailSubject","$mailMessage","From:$mailFrom");
echo "<p><font color='ffffff'>Thank you for placing your account with Cory Hicks and Associates. Your details have been forwarded and we will be in contact within 2 working days.</font></p>";
echo "<p><font color='ffffff'>From: $PlacedBy </font></P>";
echo "<p><font color='ffffff'>Subject: $mailSubject</font></p>";
echo "<p><font color='ffffff'>Message: </font></p>";
echo "<p>";
echo "<font color='ffffff'>$responseMessage</font>";
echo "</p><a href='../html/homeWA.htm' target='bottomFrame'><b>Return to the About Page</b></a>";
?>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>