Ashok, there are 2 ways of doing this :- str_replace (http://uk.php.net/manual/en/function.str-replace.php) is a PHP function to turn "\n" into "<br>", or you could use the preg_replace (http://uk.php.net/manual/en/function.preg-replace.php) function. The other is within HTML, by specifying the output as "<pre>" (http://www.devguru.com/technologies/xhtml/7772.asp) preformatted text. Robert. -----Original Message----- From: php-objects@xxxxxxxxxxxxxxx [mailto:php-objects@xxxxxxxxxxxxxxx] On Behalf Of ashok kumar Sent: 06 November 2006 05:33 To: php-objects@xxxxxxxxxxxxxxx Subject: How to place formatted text on the php page I'm entering data through textarea, and I want to display the same data on the form with all formatting settings. means, if I pressed enter while entering text in the textarea to make a separate line, the separate line has to come when displaying on the form also. Can anyone please help me ... Thankyou... *********************************************************************************** Any opinions expressed in email are those of the individual and not necessarily those of the company. This email and any files transmitted with it are confidential and solely for the use of the intended recipient or entity to who they are addressed. It may contain material protected by attorney-client privilege. If you are not the intended recipient, or a person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited. Random House Group +44 (0) 20 7840 8400 http://www.randomhouse.co.uk http://www.booksattransworld.co.uk http://www.kidsatrandomhouse.co.uk *********************************************************************************** PHP Data object relational mapping generator http://www.metastorage.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/php-objects/join (Yahoo! ID required) <*> To change settings via email: mailto:php-objects-digest@xxxxxxxxxxxxxxx mailto:php-objects-fullfeatured@xxxxxxxxxxxxxxx <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/