Re: form/text area input problem
| From: | CPT John W. Holmes | Date: | Thu, 13 Mar 2003 16:03:33 +0000 |
| Subject: | Re: form/text area input problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139529@lists.php.net to get a copy of this message | ||
> 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.
use wordwrap() to place it into a table.
---John Holmes...