June 25, 200718 yr Newbies 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, 200718 yr by Guest
June 25, 200718 yr Try: ¶ - Para Graph Sign i.e. the pilcrow char - Line Feed - carriage return Or a combination of the last two. Edited June 25, 200718 yr by Guest
June 25, 200718 yr Author Newbies 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('', '
June 25, 200718 yr 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, 200718 yr by Guest
Create an account or sign in to comment