I am creating a Tracking system using PHP. I have everything done, pretty much.
I have a system to create a file (XXXX-XXXX-XXXX.php) and writes the following code into it:
$content = file_get_contents("' . $_POST['id'] . '.txt");
echo $content;
So then, when someone accesses the tracking URL, it will get the contents of the text document created as well, and echo the content. That works fine, but the issue is showcasing line breaks.
TRACKING ID CREATED. 12/22/2018 AT 05:57:51 PM. THANKS FOR PURCHASING, TEST@GMAIL.COM
Testing.
New line?
This is the text document that the page is echoing.
TRACKING ID CREATED. 12/22/2018 AT 05:57:51 PM. THANKS FOR PURCHASING, TEST@GMAIL.COM Testing. New line?
This is the page.
The line breaks aren't there. Not sure how to go about getting them to display.