83 lines
2.2 KiB
PHP
83 lines
2.2 KiB
PHP
<?php
|
|
|
|
// Define variables for file names
|
|
$pdf_name = "RTG-V1S2-SEA-11-for-experian-inquiries-VOLUME-1-Step-2.pdf";
|
|
$html_format_name = "RTG-V1S2-SEA-11-for-experian-inquiries-VOLUME-1-Step-2_FORMAT.html";
|
|
|
|
//collect required POST form's input
|
|
$experian_report = $_POST["experian_report"];
|
|
$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"];
|
|
$social_security_no = $_POST["social_security_no"];
|
|
$date_of_birth = $_POST["date_of_birth"];
|
|
|
|
|
|
|
|
|
|
//Optional Creditors and Dates
|
|
|
|
|
|
|
|
|
|
|
|
// the unique pdf filename which will be saved on server
|
|
$file_name = mt_rand(0, 1000).time().'_'.$pdf_name;
|
|
|
|
if(isset($experian_report)){
|
|
|
|
//get html content from pre defined format
|
|
$today = date("d M, Y");
|
|
$html = file_get_contents($html_format_name);
|
|
|
|
//__SOCIAL_SECURITY_NUMBER__
|
|
//__BIRTH_DATE__
|
|
//
|
|
|
|
|
|
$varList = array(
|
|
'__EXPERIAN_REPORT__', '__FIRST_NAME__','__LAST_NAME__','__STREET_NO__','__STREET_NAME__',
|
|
'__CITY__','__STATE__','__TODAY__','__SOCIAL_SECURITY_NUMBER__',
|
|
'__BIRTH_DATE__'
|
|
|
|
);
|
|
|
|
|
|
$valueList = array(
|
|
$experian_report, $first_name,$last_name,$street_no,$street_name,
|
|
$city,$state,$today,$social_security_no,
|
|
$date_of_birth );
|
|
|
|
$serialLineHTML = "";
|
|
|
|
for($i=1;$i<= 11;$i++){
|
|
if(isset($_POST["creditor".$i]) && !empty($_POST["creditor".$i])){
|
|
$creditor[$i] = $_POST["creditor".$i];
|
|
$varList[] = "__creditor".$i."__";
|
|
$valueList[] = nl2br($creditor[$i]);
|
|
|
|
$serialLineHTML .= '<br/>Alleged Creditor#'.$i.' and the ALLEGED date of the NOT PROVEN COMPLIANT inquiry defiecient of true Permissible Purpose that REQUIRES immediate and permanent deletion:<br/><span style="background-color: #FFFF00"> __creditor'.$i.'__</span><br/>';
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$html = str_replace('__SERIAL_LINES__',$serialLineHTML,$html);
|
|
require("../common_file.php");
|
|
|
|
} else {
|
|
$url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."gtg-15-CrackerJack-Bureau-M2C-Method-letter-for-FIRST-ROUND-ATTACKS-contesting-FCRA-and-Metro-2-for-COMPLIANCE-Proof.html";
|
|
header("Location:".$url);
|
|
}
|
|
|
|
?>
|