PDA

View Full Version : Loading php text into a text feild.



FlashPlaya
April 10th, 2007, 01:01 AM
I have been playing around with trying to load php text into a dynamic text that is set to text.html =true; and add the html text in the prop's. But for some reason I can't get it to look right it does not recognize the <br> 's ?

It works when I use a stupid flash component, set to html true. But I want to add my own look to the text box. I does not load right.

here is the PHP

print 'Name: ' . $name . '<br /> Email:' . $email . '<br>Comments: </b>' . $comments . '<br>Date: ' . $time . '<br><br>';

here is how it looks in the text feild:
Name: Ryan <br /> Email:ryan@test.com<br>Comments: </b>Teadfasd<br>Date: 2007-04-09 23:50:09<br><br>Name: Ryan<br /> Email:ryan@palksdjf.coma<br>Comments: </b>adfasdf<br>Date: 2007-04-09 22:46:19<br><br>Name: ryan<br /> Email:ryan@laskjdf.com<br>Comments: </b>a;sldkfjasdf<br>Date: 2007-04-09 21:57:57<br><br>Name: Ryan<br /> Email:ryan@test.com<br>Comments: </b>asdfasdfa<br>Date: 2007-04-09 21:57:22<br><br>


Thanks!!

borrob
April 10th, 2007, 07:59 AM
go to a flash forum this is realy confusing here....

DangerousDan
April 10th, 2007, 08:26 AM
Taking out the <br> and replacing the </br> with /n should give you the desired output.

I think... :cantlook:

FlashPlaya
April 10th, 2007, 12:49 PM
Hey DangerousDan,

Yeah tried that at first. no worky.:smirk:

dentricrio
April 10th, 2007, 01:24 PM
/n for a new line?

FlashPlaya
April 10th, 2007, 02:23 PM
I got it.. man.. what a nightmare..

Change the text that was being loaded in form entries.text to entries.htmlText

working now.

Thanks guys!