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

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

Recommended Posts

Posted

Hi

Using FMSA on Windows Server 2003.

returns within a textarea form field via IWP or XSL or PHP result in a rectangle box at the end of each line when viewed via filemaker client. I have looked through many posts and have found a couple of people have had the same type of problem but I have not seen a solution. I first thought this was only an XSL problem so I asked there and Martin was kind enough to make a couple of suggestions but now it looks like a more global problem for me.

thanks!

steven durow

Posted

Thanks for the help. Could you please help clarify.

Say I have

$skills=$_POST['skills'];

I tried this

$skills=str_replace($skills," ",'<br />')

Which put just <br /> in the skills field that is it everything else is gone.

I also put chr(11) instead of what you typed but that did not work either.

Sorry but I am new to PHP.

Also within FileMaker, how can I get rid of the rectangles? I have tried using

Substitute(assessments_description,"|","")

I have also tried to copy the rectangle but that did not work either.

Again thank you so much for replying!

Posted

Try this:

$skills=str_replace($skills,chr(11),'<br />');

In FM (not IWP) are they appearing as new lines in a text field? If not they may not be chr(11). They could be Carriage Returns (different between Mac, Win, Lin). This would be chr(13).

All the best.

Garry

Posted

It looks like I had the syntax wrong.

This worked:

$skills=str_replace(chr(10),'',$skills);

Thank you so much Garry for getting me there! I appreciate it.

This topic is 7065 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.