Digital Life Posted February 15, 2013 Posted February 15, 2013 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?
doughemi Posted February 16, 2013 Posted February 16, 2013 HTML ignores carriage returns. Try Substitute(YourWebText; "¶"; "<br />")
Digital Life Posted February 17, 2013 Author Posted February 17, 2013 Thanks but that doesn't work. I've tried PHP tags too and they just show as text. Anyone?
doughemi Posted February 17, 2013 Posted February 17, 2013 Why don't you zip a copy of your file with a few sample records and post it?
Digital Life Posted February 22, 2013 Author Posted February 22, 2013 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.
MartieH Posted February 22, 2013 Posted February 22, 2013 you can use getFieldUnencoded in your php code to see the text with the html attributes Martie
Recommended Posts
This topic is 4560 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now