# Flash and PHP

**URL:** <https://forum.kirupa.com/t/flash-and-php/285813>\
**Category:** Uncategorized\
**Created:** [April 6, 2009, 10:45pm UTC](https://forum.kirupa.com/t/flash-and-php/285813 "2009-04-06T22:45:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arturo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/arturo/32/761_2.png) [@arturo](https://forum.kirupa.com/u/arturo)\
**Post date:** [April 6, 2009, 10:45pm UTC](https://forum.kirupa.com/t/flash-and-php/285813/1 "2009-04-06T22:45:01Z")

</div>

Hi guys, I’ve a question, I need to build a really simple php document and send the variables to flash, I’m following a simple tutorial where

PHP document:

```php
<?php
    //Variable
    $VariableName = "johnmartin es mi nombre";
    //Print Variable
    print("Output Value=" . $VariableName);
?>

```

Flash Document:

```auto
var a = new LoadVars();
    a.load("Myphp.php");
    a.onLoad = function() {
    texto_txt.text = this.VariableName;
};

```

Now, the thing is, I’m using dreamweaver to retrieve data from a MySQL database, the way dreamweaver calls this is using this type of variables:

```php
<?php echo $row_rsContacts['VariableName']; ?>

```

If in the flash I place

VariableName doesn’t work,

if I place #VariableName doesn’t work

if I place $row\_rsContacts[‘VariableName’] doesn’t work,

it says, undefined, so, what am I doing wrong?

Thanks a lot!

A.-
