tim gales writes:

> Hi.  I am trying to have type in a story into a form "textfield" and
> submit it using PHP into "blob" formatted field mysql database.
> 
> When I submit, all the "returns" are removed and all the text runs
> together like on ebig paragraph.  Is there a way to have mysql or PHP
> recognize the "returns" and "empty lines" from the "textarea" field and
> rememeber them so when I call them up from the database the formatting
> looks just like when I typed it in the text field?

Ah, an *HTML question.
You get it the way it was in the TEXTAREA. The user agent might have
word wrapped it, but that's something you'll have to do too when you
present it. If you really want it to look just like the user saw it
(although there are of course no guarantees that in will look _good_),
look at the non-standard WRAP attribute to the TEXTAREA tag.
WRAP=hard outght to work in most browsers.

//C

-- 
 Carl Troein - Círdan / Istari-PixelMagic - UIN 16353280
 [EMAIL PROTECTED] | http://pixelmagic.dyndns.org/~cirdan/
 Amiga user since '89, and damned proud of it too.


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to