Formatting Question
| From: | Toby Osbourn | Date: | Mon, 02 Oct 2006 17:08:24 +0000 |
| Subject: | Formatting Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-242483@lists.php.net to get a copy of this message | ||
Sorry to plague you with a question that should have a simple answer, but I
can't find said answer anywhere (probably looking for the wrong things in
the wrong places!)
Basically I want to allow a user to input a string via a form into a
database, I have the code to do that and it works almost 100% - I have made
it so that any html tags are stripping off the string before saving it, but
I do want to allow some basic formatting - namely when a user takes a new
line in the textbox, I want the new line to carry over to the database.
At the moment the user could type in something like this...
wibble
wobble
But after it has been submitted and then retrieved from the database it will
return wibblewobble.
Any ideas?
Regards
Toby
--
http://www.borninblood.co.uk