Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
janson_m #1
Fetched text looses layout...how can I keep it?
Hi!
Here's the problem. I have a comments textfield in my insert form. There ppl
can type any kind of text, say for example:
Hello!
Cool site here!
Cheers!
After submitting, everything is fine. I check the db (mySQL), and the text
looks fine there, including the layout. However, when I retrieve the text on my
'view comments' page, the format is gone! Is shows the text like this:
Hello! Cool site! Cheers!
Where are my hard returns? I saw that the recordset already looses the
layout... Any suggestions as to how I can show these comments in there original
layout? I con't put the site online like this...
Thanks!!!
Magiel
janson_m Guest
-
Adobe CS2 looses live text fields in PDF files when saved back out
We have a customer that provides us with PDF files that contain text fields. We need to add graphics in AICS2 and then save the PDF file back out.... -
Text Layout In Flash Form
I've serached for an answer and cant seem to find a way to control where text is displayed on my flash form. Basically I want 2 columns of text... -
Missing text sections in layout printed to plain text
Hi - I am printing out one long text inserted (pasted) in a textbox in one body section which spans multiple pages. Within this text (source... -
emailing with an attachment that has fetched from db (longblob)
I am trying to send an email with an attachment. The problem is the attachment is stored in db where I have created a longblob field that contains... -
Fixed Width layout cells expanding with text ??
Hi - got the same problem I went trhough the tutorial, but have some questions: When it talked about 'balloon cell', and wrote "I have a small... -
-Rb #2
Re: Fetched text looses layout...how can I keep it?
"janson_m" <webforumsuser@macromedia.com> wrote in message
news:dfk1dl$cej$1@forums.macromedia.com...*If* you are using PHP, take a look at nl2br().> Hi!
>
> Here's the problem. I have a comments textfield in my insert form. There ppl
> can type any kind of text, say for example:
>
> Hello!
> Cool site here!
> Cheers!
>
> After submitting, everything is fine. I check the db (mySQL), and the text
> looks fine there, including the layout. However, when I retrieve the text on
> my
> 'view comments' page, the format is gone! Is shows the text like this:
>
> Hello! Cool site! Cheers!
>
> Where are my hard returns? I saw that the recordset already looses the
> layout... Any suggestions as to how I can show these comments in there
> original
> layout? I con't put the site online like this...
>
> Thanks!!!
> Magiel
>
The php documentation is available at:
[url]http://www.php.net/docs.php[/url]
HTH
-Rb
-Rb Guest
-
bigj9901 #3
Re: Fetched text looses layout...how can I keep it?
This link will tell you how to do it in almost any language.
[url]http://www.jeremysmeltzer.net[/url]
bigj9901 Guest
-
janson_m #4
Re: Fetched text looses layout...how can I keep it?
I *AM* using PHP, sorry for not mentioning that, and I checked out the nl2br() function. It worked beautifully! Thanks you very much! Problem solved.
Magiel
janson_m Guest



Reply With Quote

