Re: HTML /TEXTAREA/ PHP/ CSV



<textarea cols='90' name='question1' rows='15'></textarea> is one of them.
No wrap attribute is used.

Some clients would be formatted perfectly .. will some other will come out
iun a VERY bad shape.

I have two textarea

<textarea cols='90' name='question1' rows='15'></textarea>
<textarea name='question3' cols='90' rows='5'></textarea>


the form process
<form method="post" action="result.php">

here is result.php (part of)

$param = count($HTTP_POST_VARS);
foreach ($HTTP_POST_VARS as $k => $v)
{
fwrite ($fp, "$v,");

}
fclose($fp);

Thanks NC for the suggestion (Made me look twice!!).




"NC" <nc@xxxxxxxxx> wrote in message
news:1130286677.020841.7050@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 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: 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)
  • Re: HTML /TEXTAREA/ PHP/ CSV
    ... The form is processed by a php script ... > to be broken in the middle making the csv file impossible to be processed. ... you defined your TEXTAREA with a non-standard wrapping ...
    (alt.php)
  • Error creating CSV out of SQLdb
    ... I have the following coding problem: ... Some of these questions are answered by a textarea (which gives the user the ... When I want to output my answers to a .csv file, the 'new line feeds' of the ... textarea fields are messing up my grid in the csv (excel text file seperated ...
    (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)
  • HTML /TEXTAREA/ PHP/ CSV
    ... The form is processed by a php script ... (nothing special about it, open file, write, close file). ... The csv file obtain is nice .. ... to be broken in the middle making the csv file impossible to be processed. ...
    (alt.php)