Re: HTML /TEXTAREA/ PHP/ CSV



Michel Beaussart wrote:
>
> I created a form with a textarea. The form is processed by a php script
> (nothing special about it, open file, write, close file).
> The csv file obtain is nice .. exception made of a couple of line that seems
> to be broken in the middle making the csv file impossible to be processed.
> I do not know whare to start to have clean nice lines each time.
> The intermitence of the problem is making it difficult for me (newbie in php
> and web dev) to narrow down.

Most likely, you defined your TEXTAREA with a non-standard wrapping
attribute (wrap=hard), so the user's browser inserts end-of-line
characters when lines wrap... Get rid of this attribute and/or
increase the width of TEXTAREA (the cols attribute).

Cheers,
NC

.



Relevant Pages

  • Re: HTML /TEXTAREA/ PHP/ CSV
    ... >> I created a form with a textarea. ... The form is processed by a php script ... >> The csv file obtain is nice .. ... >> to be broken in the middle making the csv file impossible to be ...
    (alt.php)
  • new lines in textareas?
    ... I have a php script which produces text which is to be displayed in a textarea. ... I have the wrap for the text area set to 'hard'. ...
    (php.general)
  • Re: [PHP] new lines in textareas?
    ... $textdata = 'This is a test\nThis is the second line'; ... the text after submitting through the textarea, ... I have a php script which produces text which is to be displayed in ... I have the wrap for the text area set to 'hard'. ...
    (php.general)
  • Re: [PHP] new lines in textareas?
    ... I have a php script which produces text which is to be displayed ... in a textarea. ... I have the wrap for the text area set to 'hard'. ...
    (php.general)
  • Re: How to load a CSV/TXT file in a textarea?
    ... and paste the contents of the csv file into the textarea. ... I coded a normal HTML input type file which shows me the path of the file in a textbox. ... But now I want the content of my file in the textarea and I am asking myself, if this is possible only via HTML and without coding a file upload, for example with PHP ...
    (alt.html)