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

Your name:

Reply:


Posted by Tim Roberts on 01/15/07 02:13

"Daz" <cutenfuzzy@gmail.com> wrote:
>
>Is there any particular reason that you aren't using POST? Generally,
>GET is for getting data, and POST is for posting. Also, I believe that
>post encodes and escapes the data, too, so it will arrive as you'd
>expect it to.

This is not true. GET and POST requests are both encoded, although they
use different schemes. With the exception of file uploads, there is
nothing you can send with POST that you cannot also send with GET.

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.

>My guess is that there is not URL code for the newline
>chracter, as it's a control code, and not meant to be visible.

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">. Otherwise, it assumes you don't want the newlines at all,
and discards them.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

[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

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