|
Posted by Michel Beaussart on 10/26/05 04:37
<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@iname.com> wrote in message
news:1130286677.020841.7050@o13g2000cwo.googlegroups.com...
> 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
>
Navigation:
[Reply to this message]
|