It is probably storing the data like that, but the display page isn't
displaying it like that. You'll need either to nl2br() it or put <pre></pre>
tags around it.

You can check the page source and see if it looks like that. Either of the
above solutions should work.

-Dash

-----Original Message-----
From: Andreas Esser [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 29, 2002 10:52 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP / MySQL Guestbook


hi,

i have written a php guestbook using a mysql database to store and recall
the entries that where typed in by the visitor.

there is a formular with several fields like "name", "email" and "message".

here´s the problem:

the visitor types some message into the message field, i.e.:

" hello,

how are you today?

yours michael "

the typed message should now be written into the database and when the
visitor click on the button "see all entries" the message should be
displayed exactly the same than typed in.

it works, except the wordwrap. i´ve edited my <form> - tag and added the
expression " wrap=physical ". but this doesn´t work.

how can i manage that the wordwrap information is displayed correctly in my
database request??


i hope that some of you guys can help me with this


greetz

andreas





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

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

Reply via email to