Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6353 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted (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 by Guest
Posted (edited)

Try:

 - Para Graph Sign i.e. the pilcrow char





 - Line Feed





- carriage return

Or a combination of the last two.

Edited by Guest
  • Newbies
Posted

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('
', '

Posted (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 by Guest

This topic is 6353 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.