Re: Retaining formatting problem[Scanned]
| From: | Marek Kilimajer | Date: | Tue, 08 Jul 2003 11:21:20 +0000 |
| Subject: | Re: Retaining formatting problem[Scanned] | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154336@lists.php.net to get a copy of this message | ||
<input type="text"> cannot have multiple lines, use <textarea name=" name " col=" num of cols " rows=" num of rows ">this
little amount of
text</textarea>
Michael Egan wrote:
I've experienced the same problem. It's not that the line returns disappear - they will still be retained but stored as /n or /r. You'll need to find a way of replacing the line breaks with a html paragraph break - assuming your required output is html. Perhaps some of the regexp functions will help in this - I haven't got the code I used for this to hand. HTH, Michael Egan -----Original Message----- From: brenton@lefevrehs.sa.edu.au [mailto:brenton@lefevrehs.sa.edu.au] Sent: 08 July 2003 10:30 To: php-general@lists.php.net Subject: [PHP] Retaining formatting problem[Scanned] Hello everyone, I have a long running problem that i just want to get covered, I have a standard text box for people to insert long lengths of text. This text box is in a standard <input type="text"> but when I insert it into the database the line returns dissapear, eg "this little amount of text" will enter like "this little amount of text will enter like" Please help me it is p!!$$!ng me right off :P Cheers in advance