mySQL returns in forms
- bumcheekcity
-
bumcheekcity
- Member since: Jan. 19, 2003
- Offline.
-
- Forum Stats
- Member
- Level 27
- Blank Slate
Quick question: I've got a dead simple form. A textbox and a textarea. When a user submits multiple paragraphs of text into the textarea, it shows up fine in PHPmyAdmin. However, when it comes to actually using PHP echo to put it on a html page, all the return breaks are broken... You probably know what I mean, but I haven't explained it very well.
The only way to get around it is to put the raw HTML in, with <p> <br> tags, the lot, and many people cant do that.
Is there something I can do in PHPmyAdmin or in the form to solve this?
- I-Jaf
-
I-Jaf
- Member since: Jul. 2, 2003
- Offline.
-
- Forum Stats
- Member
- Level 09
- Blank Slate
yeah, i got the same problem.
i'm just getting inot php and sql, making a forum, pretty easy, thats one of the only problems. i'm pretty sure that you cant solve the problem with the database, you've gt to find a way of automatically adding the html
http://www.phpfreaks.com/tutorials/107/0.php
see if that helps
- pieoncar
-
pieoncar
- Member since: Apr. 21, 2004
- Offline.
-
- Forum Stats
- Member
- Level 53
- Blank Slate
- I-Jaf
-
I-Jaf
- Member since: Jul. 2, 2003
- Offline.
-
- Forum Stats
- Member
- Level 09
- Blank Slate
At 8/30/04 12:59 PM, pieoncar wrote: nl2br, my good man.
yay, that tutorial i linked to turned out to be useless, i'd just found it as i was posting

