February 15, 201312 yr I have a web site that is presenting data from fields in a Filemaker Database. FM 11 Server. When viewing the text in a browser it does not see the carriage returns. Is there a way to embed some html/php in the field so that the browser will add in carriage returns?
February 17, 201312 yr Author Thanks but that doesn't work. I've tried PHP tags too and they just show as text. Anyone?
February 22, 201312 yr Author I couldn't find any way from anybody on how to type something into the text field that would be respected by a browser. But I did find a PHP function that does what I need. So the original html/php code was: <dd><?php echo $record->getField("Field_Name"); ?></dd> The revised code is: <dd><?php echo nl2br($record->getField("Field_Name")); ?></dd> which has the effect of rendering the breaks typed into the Filemaker text field in the browser.
February 22, 201312 yr you can use getFieldUnencoded in your php code to see the text with the html attributes Martie
Create an account or sign in to comment