# Sending and receiving variables with flash and php

**URL:** https://forum.kirupa.com/t/sending-and-receiving-variables-with-flash-and-php/319374
**Category:** Uncategorized
**Created:** [February 18, 2011, 5:07am UTC](https://forum.kirupa.com/t/sending-and-receiving-variables-with-flash-and-php/319374 "2011-02-18T05:07:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wildliferescuer](https://avatars.discourse-cdn.com/v4/letter/w/edb3f5/32.png) [@wildliferescuer](https://forum.kirupa.com/u/wildliferescuer)
#### Post date: [February 18, 2011, 5:07am UTC](https://forum.kirupa.com/t/sending-and-receiving-variables-with-flash-and-php/319374/1 "2011-02-18T05:07:09Z")

</div>

Hi there  
I am trying to use flash to retrieve variables from a mysql database using php.  
the Action Script I am using is

```auto
function showContent(){
    
    title_txt.text = this.title_txt;
    
}

var c = new LoadVars();
c.onLoad = showContent;

button.onRelease = function(){
    c.sendAndLoad("ShowFlash.php",c,"POST");
}

```

considering the php is returning all the variables as a string like [COLOR=Red]“title\_text=a title&time\_txt=12:45 pm&date\_txt=some date[/COLOR]” what would I be doing wrong?
