Jump to content

Help!! PHP line break.


Rivrunnr1

Recommended Posts

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:

Capture-7.png

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.