Newbies tcleu Posted June 25, 2007 Newbies Posted June 25, 2007 (edited) Hi! I'm doing a simple search and display using PHP and Filemaker. One challenge I have is that carriage returns entered in the Filemaker field is not showing up in the browser. I can detect characters like tabs (t) but not the newline character. I have tried nl2br, preg_replace( '/rn/', "", $record->getField("description") ) with no success. Any advise? Thanks in advance! -TC Edited June 25, 2007 by Guest
Genx Posted June 25, 2007 Posted June 25, 2007 (edited) Try: ¶ - Para Graph Sign i.e. the pilcrow char - Line Feed - carriage return Or a combination of the last two. Edited June 25, 2007 by Guest
Newbies tcleu Posted June 25, 2007 Author Newbies Posted June 25, 2007 Hi Genx, Thanks for the suggestion. Unfortunately, this doesn't seem to work. And I'm using it in this manner: $text = $record->getField("description"); $pattern = array(' ', "t"); $replace = array('', '
Genx Posted June 25, 2007 Posted June 25, 2007 (edited) Hmmm, I'll try a few things out on Wednesday and get back to you on this if you haven't found a solution yet. .. In the mean time, try making a calc in FileMaker on your field: Substitute( field ; ¶ ; "" ) and then retrieving that instead. If that doesn't work, try using the specified codes for new line and carriage return. Cheers. Edited June 25, 2007 by Guest
Recommended Posts
This topic is 6623 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