# Load PHP variables into a flash textbox

**URL:** <https://forum.kirupa.com/t/load-php-variables-into-a-flash-textbox/244784>\
**Category:** Uncategorized\
**Created:** [November 21, 2007, 6:02pm UTC](https://forum.kirupa.com/t/load-php-variables-into-a-flash-textbox/244784 "2007-11-21T18:02:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iNeed\_Help](https://avatars.discourse-cdn.com/v4/letter/i/49beb7/32.png) [@iNeed\_Help](https://forum.kirupa.com/u/iNeed_Help)\
**Post date:** [November 21, 2007, 6:02pm UTC](https://forum.kirupa.com/t/load-php-variables-into-a-flash-textbox/244784/1 "2007-11-21T18:02:40Z")

</div>

Please tell me one of you actionscripters can help me.  
I have a file called content.php with the following code:

```php

<?php
 $phpcontent1 = "I want this text to display in a flash text field";
 print("&swfcontent1=$phpcontent1");
?>

```

Then I have a flash file with a text field that has both an instance name of “swfcontent1” & the variable name of “swfcontent1”. The first keyframe in my time has the following actionscript in it:

```auto

contentVars = new LoadVars();
contentVars.load("http://localhost/content.php");
contentVars.onLoad=function(){
txtbox1 = this.swfcontent1;
}

```

When I test my movie, my text box shows “\_level0.swfcontent1” instead of the actual variable contents. Can anyone tell me why this is?

Thanx
