[FX.php List] Line breaks in text fields

Derrick Fogle derrick at fogles.net
Mon Jul 10 10:28:55 MDT 2006


I've been using the FM GetAsCSS() function with some success;  
creating a calculated field that equals getascss(sourcefield) and  
using that field for PHP output renders the line breaks, bold, italic  
and basic formatting pretty well.

Otherwise, you've got to use the str_replace(), with the search for  
Vertical Tab (ASCII 11) and replace with whatever in PHP.

On Jul 10, 2006, at 11:22 AM, Chris Bisgard wrote:

> Hello all,
>
> I'm working with a FileMaker 8 database that has some text fields with
> line breaks in them. That is, when doing the data entry in FileMaker
> Pro, some of my users are hitting "Enter" a couple of times to create
> paragraphs that are separated by a blank line. But when I do a  
> query and
> display those fields with FX.php, the line breaks disappear and the  
> text
> runs together where there should be a space. Is there a way to detect
> and parse these line breaks as "<br>" tags so that they will  
> display as
> intended? Alternately, is there a different way I can I train my data
> entry people to enter the text so as to achieve the same effect?
>
> Thanks for any help...
>
> Chris Bisgard
> IT Specialist
> Regional Arts & Culture Council
> Portland, OR
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list


Derrick Fogle
derrick at fogles.net





More information about the FX.php_List mailing list