Greetings, June 15th 2013

On several attempts I have "Posted" variables through a form and utilized "$_REQUEST" which I applied while I successfully wrote hem to file. However, when I encounter the "Text Area" I attempt to write as discussed while I as well apply "StrReplace" of the Carriage Returns, "chr(13)" and the CR's are replaced. Again, however, when written to file utilizing "a", append it appears as though they weren't as the text area variable isn't on one line as needed. I need the one line while I read the written file and apply the lines to variables. Any ideas? I have tried nl2br etc....

Appreciatively,
Ted

    One idea that comes to my mind is: you haven't covered the case where a line break isn't defined as a carriage return. For example, what if a line break is defined by the user's OS as a carriage return followed by a line feed OR just a line feed? It sounds like you want to replace both carriage returns and line feed (\r and \n, or 0xD and 0xA, respectively).

      bradgrafelman,

      You were correct I attempted to remove both carriage return, new line and they were successfully removed! Your help is greatly appreciated :-)
      Ted

        Write a Reply...