Tag Archives: Backslash

Text Formatting problem

My site is known for a PHP based source page which creates a fresh file on the site. My problem is the fact when I submit something coming from a text area, PHP removes many of the line breaks in advance of adding it into a file. So that as you move description I set up is properly formated, one that viewers read is often a single long section. Is there any tool for fixing that Another problem is the fact if I put a " on the name of your file, fopen() automatically adds a backslash just before it. (ie Bob’s stuff results in being Bob/’s stuff) Anyone know why when you can stop either of these from happening With thanks, Theodore The backslash thing refers to this PHP receive: $content = stripslashes($content); You need to use that before everyone save it towards file. The line breaks is really a little tougher to resolve. This actually depends on how you edit the content. I usually do it this way…. but it’s my particular preference. This is to save your content… textarea from a form. PHP: < php //    You  have  a  whole  textarea  from  a  form … //    … Continue reading

Posted in Web Design | Tagged , , , , , , , , , | Leave a comment