RE: [PHP-WIN] Get the contents of the textarea "as is"
| From: | Flint Doungchak | Date: | Thu, 21 Jun 2001 19:32:34 +0000 |
| Subject: | RE: [PHP-WIN] Get the contents of the textarea "as is" | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-7976@lists.php.net to get a copy of this message | ||
Ben,
When you receive it, try using the nl2br function in PHP. See the manual.
-Flint
-----Original Message-----
From: Ben Gillam [mailto:funy_69@hotmail.com]
Sent: Thursday, June 21, 2001 8:52 AM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Get the contents of the textarea "as is"
For example, if someone puts the following into a textbox..
"Hi my name is bob smith
and im talking to you now
and hitting enter every now and then"
and the name of the textbox is $message
how could i get it to take the contents of the text box and put it in
$message as is, with blank lines and carrige returns that the user has put
in, becuase as you know that would just come out as
"Hi my name is bob smith and im talking to you now and hitting enter every
now and then"
Any help would be great.
funy_69@hotmail.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net