Reply to Re: Line breaks (\n) from a html form textarea??? HELP!

Your name:

Reply:


Posted by Michael Fesser on 01/15/07 11:54

..oO(Tim Roberts)

>HOWEVER, just because one can, doesn't mean one should. Your basic advice
>is correct: POST should almost always be used for forms, because the URLs
>get too large.

It's also a security issue. Using plain links to change or delete
something on the server can become a problem or even a security risk.

>Nope. That's not the problem. Another responder nailed it: you have to
>tell the <textarea> that you want the newlines by saying <textarea
>wrap="hard">.

That's no HTML.

I've tested Opera, FF, IE and Lynx - all browsers send correct line
breaks from a textarea, regardless of the used method (GET or POST).

Using GET and a simple

| test1
| test2
|
| test3

the line breaks are sent as URL-encoded "\r\n":

....&textfield=test1%0D%0Atest2%0D%0A%0D%0Atest3&...

Micha

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация