Be a Supporter!

mySQL returns in forms

  • 275 Views
  • 3 Replies
New Topic Respond to this Topic
bumcheekcity
bumcheekcity
  • Member since: Jan. 19, 2003
  • Offline.
Forum Stats
Member
Level 27
Blank Slate
mySQL returns in forms 2004-08-30 10:34:04 Reply

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
Response to mySQL returns in forms 2004-08-30 12:56:15 Reply

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
Response to mySQL returns in forms 2004-08-30 12:59:58 Reply

nl2br, my good man.

I-Jaf
I-Jaf
  • Member since: Jul. 2, 2003
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to mySQL returns in forms 2004-08-30 13:20:32 Reply

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