In article <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED] says...
> 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

Mate, newlines in HTML are treated as whitespace, so all the newlines will 
be faithfully stored in your database and faithfully ignored by your 
browser when you display the contents of the database :-) Look at 'View 
Source' and you will see the new lines in the source. You want to feed the 
output from your database to nl2br() to add some <BR /> tags so browsers 
will recognise the line breaks.

May I recommend you tell Outhouse to wrap lines at around 74 characters 
for mail lists/newsgroups?

[Lefevre - down in the direction of Semaphore or the Port?]

Cheers
-- 
Quod subigo farinam


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to