You are here: Re: Line breaks (\n) from a html form textarea??? HELP! « PHP Programming Language « IT news, forums, messages
Re: Line breaks (\n) from a html form textarea??? HELP!

Posted by Geoff Berrow on 01/13/07 23:36

Message-ID: <1168728585.444036.130160@s34g2000cwa.googlegroups.com> from
ghostwalker contained the following:

>I have an HTML form with a textarea on it. When submitted (using 'get'
>not 'post') this forms action php file simply does this to retrieve the
>values:
>
>$message = $_GET["message"];
>
>Now it all works fine but I get the string in one long string with no
>'\n' where the user pressed 'return key'
>
>How can I get the carriage returns in the textarea to be replaced with
>a '\n' ??? Its driving me nuts here!!

You may be better off using post instead of get



--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

Navigation:

[Reply to this 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

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