RE: [PHP-DB] Formatting a form box

2006-01-12 Thread Bastien Koert
use the nl2br() function to convert the newlines to br bastien From: Alex Major [EMAIL PROTECTED] To: php-db@lists.php.net Subject: [PHP-DB] Formatting a form box Date: Thu, 12 Jan 2006 16:33:01 + Hi there, On one of my forms, there is a section where users can put images etc..and then

RE: [PHP-DB] Formatting a form box

2006-01-12 Thread Miguel Guirao
One approach is to ask the user to input a text delimiter, like a @, for example, in every point where there should be a new line or paragraph. Then, you should parse the text, and at every point you find a @, tu place a BR or P or any other HTML tag that best suits your need!! This is just one

RE: [PHP-DB] Formatting a form box

2006-01-12 Thread tg-php
What? Nobody said This has nothing to do with PHP and databases? Sheesh... someone must be sleeping. :) Ok, so it sorta does relate.. But yeah... no2br() will do it for you. Textarea input types DO send a newline and/or carriage return (didn't test and might be system specific), so if you

Re: [PHP-DB] Formatting a form box

2006-01-12 Thread El Bekko
Miguel Guirao wrote: One approach is to ask the user to input a text delimiter, like a @, for example, in every point where there should be a new line or paragraph. Then, you should parse the text, and at every point you find a @, tu place a BR or P or any other HTML tag that best suits your

Re: [PHP-DB] Formatting a form box

2006-01-12 Thread Alex Major
Thanks for the suggestions, the nl2br has been a common suggestion and think that I have found more of what the problem is. (And it is kinda php specific cause its php pages). Basically its not displaying it correctly on the page, the text in the database is now being stored correctly (with lines