hi please can someone help?
I have designed an applicant form that posts data to session variables then at the end of the application it puts all session variables in an array.
I then have a template.rtf file which I copy and rename to $_session_timestamp.rtf
I then open for writing
I have a function that searches the opened document for placeholders %%placeholder name%% and replace with relevant array data. This works great except for one annoying issue.
Some of the array data has come from text area field with new lines needed. When I us nl2br to turn the \n to <br /> and write to rtf file it shows in the rtf as actual echoed <br /> rather than putting the text following the tag on a new line. If I don't use nl2br it prints all the data on one line. This means you get words like the decidedto rather than decided
To
Is there a way to get the formatting right? Please help in plain English I am not a good interpreter of really techie answers thanks