July 5, 200520 yr 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
July 5, 200520 yr This is likely to be the FM Vertical Tab. It has a hex value of "x0B". You can find its other values at: http://www.lookuptables.com/ We use a str_replace("",'<br />') function to replace them with a break. We have also used chr(11) to find them. Good Luck. Garry
July 6, 200520 yr Author 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!
July 6, 200520 yr 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
July 7, 200520 yr Author 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.
Create an account or sign in to comment