for 2, yes nl2br() will do it. THanks. but for 1, if the user don't press enter (yes they were typing a long paragraph), then the variable will contain one LONG string.
ANd if I retrieve this data and put it in the html page, it would appear as a one lined long string. DO you know what I am trying to say? Let's say in the paragraph the user input in the text area is somethign like this: Hi, this is a longggggggggggggggggg paragraph that issssssssssssssssss about our knowledgeBBBBBBBBBBBBBBBBBBBBBBBBBBBBase. I have NEVERRRRRRRRRRRR press enter in this text area at alllllllllllllllllll. then this content will be stored in the database and I would retrieve this and display it in a html page. the problem is when I display it it would be a one lined paragraph. THe page's format is ruin since this is one long line and the user will have to scroll across to read the paragraph which look pretty bad. I hope you know what i am trying to say. Thank you for the suggestions anyways Kelvin -----Original Message----- From: - Edwin [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 10:14 AM To: Poon, Kelvin (Infomart); '[EMAIL PROTECTED]' Subject: Re: [PHP] form/text area input problem Hi, "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]> wrote: [snip] > I am just looking for a more efficient way of solving this, can anyone > give me any idea? [/snip] I think you'll save yourself from so much trouble if: 1. You just leave those long text. If they didn't press ENTER, it means that they were typing a looong paragraph, no? 2. Use the nl2br() function to make sure that those parts where they pressed ENTER (a newline), would be turn into <br />. http://www.php.net/manual/en/function.nl2br.php Just my idea... - E __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php