# Load PHP with HTML into Dynamic Text Field

**URL:** https://forum.kirupa.com/t/load-php-with-html-into-dynamic-text-field/314888
**Category:** flash
**Created:** [October 11, 2010, 10:53pm UTC](https://forum.kirupa.com/t/load-php-with-html-into-dynamic-text-field/314888 "2010-10-11T22:53:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![treeleaf20](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@treeleaf20](https://forum.kirupa.com/u/treeleaf20)
#### Post date: [October 11, 2010, 10:53pm UTC](https://forum.kirupa.com/t/load-php-with-html-into-dynamic-text-field/314888/1 "2010-10-11T22:53:53Z")

</div>

All,  
I have the following code:

```auto

myData = new LoadVars();
myText_txt.html = true;
myData.onLoad = function() {
myText_txt.htmlText = this.myVariable;
}; 
myData.load("events.php"); 

```

I have a text box on my page that has an instance name of myText\_txt so it should load the data from the events.php into the text field. I’ve enabled HTML on the text box and made it dynamic and multiline. When I output the PHP file the text box is blank. Here is the PHP file:

```php
<?php
echo "&myVariable=This is some text. Here is a link: <a href=\"http://espn.com\">ESPN</a><br><br><br> Here is <img src=\"arrow2_as2\" id=\"arrow2_as2\">";
?> 

```

Any ideas why it won’t output any of the HTML text? Thanks for the help!
