durow Posted July 5, 2005 Posted July 5, 2005 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
Garry Claridge Posted July 5, 2005 Posted July 5, 2005 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
durow Posted July 6, 2005 Author Posted July 6, 2005 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!
Garry Claridge Posted July 6, 2005 Posted July 6, 2005 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
durow Posted July 7, 2005 Author Posted July 7, 2005 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.
Garry Claridge Posted July 9, 2005 Posted July 9, 2005 Whoops, I should have picked-up the syntax as well. All the best. Garry
Martin Brändle Posted July 12, 2005 Posted July 12, 2005 See also http://www.fmforums.com/threads/showflat...SID=#Post167427
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now