Rivrunnr1 Posted April 1, 2010 Share Posted April 1, 2010 Hi fellahs. I have been ripping my hair out over this. I have a file that creates a PDF and emails it after a user submits a form. In the PDF, there are two columns. One column has the labels and one column has the user input. I am having a problem with the labels not being wrapped properly. Here is the code <td> <strong><?php echo htmlentities($data[_FF_DATA_TITLE], ENT_QUOTES, 'UTF-8'); ?>:</strong> </td> <td> <?php echo nl2br(htmlentities(substr($data[_FF_DATA_VALUE],0,10000), ENT_QUOTES, 'UTF-8')); ?> </td> </tr> <?php } } ?> </table> I found that this: <strong><?php echo htmlentities($data[_FF_DATA_TITLE], ENT_QUOTES, 'UTF-8'); ?>:</strong> ....is the part that I am having trouble with. Here is a picture to illustrate the problem: The labels are not being wrapped properly. The "_FF_DATA_TITLE" is the information that is displayed (all the s's). Can anyone help? Link to comment https://forums.phpfreaks.com/topic/197282-help-php-line-break/ Share on other sites More sharing options...
jus098 Posted April 1, 2010 Share Posted April 1, 2010 add table start tag Link to comment https://forums.phpfreaks.com/topic/197282-help-php-line-break/#findComment-1035559 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.