inital commit
This commit is contained in:
68
webroot/V1.0/RTG-CHARGEOFF-creditor-M2C-CRM-LETTER-ONLY.php
Normal file
68
webroot/V1.0/RTG-CHARGEOFF-creditor-M2C-CRM-LETTER-ONLY.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
// Define variables for file names
|
||||
$pdf_name = "RTG-CHARGEOFF-creditor-M2C-CRM-LETTER-ONLY.pdf";
|
||||
$html_format_name = "RTG-CHARGEOFF-creditor-M2C-CRM-LETTER-ONLY_FORMAT.html";
|
||||
|
||||
//collect required POST form's input
|
||||
|
||||
$first_name = $_POST["first_name"];
|
||||
$last_name = $_POST["last_name"];
|
||||
$street_no = $_POST["street_no"];
|
||||
$street_name = $_POST["street_name"];
|
||||
$city = $_POST["city"];
|
||||
$state = $_POST["state"];
|
||||
$personal_tracking_number = $_POST["personal_tracking_number"];
|
||||
$credit_bureau_name_address = nl2br($_POST["credit_bureau_name_address"]);
|
||||
$alleged_account = $_POST["alleged_account"];
|
||||
$sincerely = $_POST["sincerely"];
|
||||
|
||||
|
||||
|
||||
// the unique pdf filename which will be saved on server
|
||||
$file_name = mt_rand(0, 1000).time().'_'.$pdf_name;
|
||||
|
||||
if(isset($first_name)){
|
||||
|
||||
//get html content from pre defined format
|
||||
$today = date("d M, Y");
|
||||
$html = file_get_contents($html_format_name);
|
||||
|
||||
|
||||
|
||||
$varList = array(
|
||||
'__FIRST_NAME__','__LAST_NAME__','__STREET_NO__','__STREET_NAME__',
|
||||
'__CITY__','__STATE__','__TODAY__','__PERSONAL_TRACKING_NUMBER__',
|
||||
'__credit_bureau_name_address__','__ALLEGED_ACCOUNT__','__sincerely__'
|
||||
|
||||
);
|
||||
|
||||
|
||||
$valueList = array(
|
||||
$first_name,$last_name,$street_no,$street_name,
|
||||
$city,$state,$today,$personal_tracking_number,
|
||||
$credit_bureau_name_address,$alleged_account,$sincerely );
|
||||
|
||||
|
||||
//Optional Creditors and Dates
|
||||
for($i=1;$i<= 11;$i++){
|
||||
if(isset($_POST["creditor".$i])){
|
||||
$creditor[$i] = $_POST["creditor".$i];
|
||||
$date[$i] = $_POST["date".$i];
|
||||
$varList[] = "__creditor".$i."__";
|
||||
$varList[] = "__date".$i."__";
|
||||
$valueList[] = $creditor[$i];
|
||||
$valueList[] = $date[$i];
|
||||
} else {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
require("../common_file.php");
|
||||
|
||||
} else {
|
||||
$url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."RTG-711-M2C-Crm-INQUIRY-Letter-for-BUREAUS.html";
|
||||
header("Location:".$url);
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user