Flash PHP query string

Hi guys

I’m currently working on a flash combobox and text field passing data to php to display the input from flash. It require using query string method.

I’m stuck on the query string code, anyone able to help?
My as3 has nothing wrong, I just don’t know whats going on the php is not catching my data for display.

Any help will be greatly appercicated

The php I’m targeting looks like this:


    $current_page_num = 1;
    require_once 'dir/php.php';    
    $use_GET = $_GET[ 'use' ];     
    if ( $use_GET ) {    
        $timestamp = $use_GET;    

        $template->set( 'use', $timestamp );
        $user['id'] = $GLOBALS['user']->uid;    

        load_form( $elements, $template, $user, $timestamp );    

    _page_1( $elements, $template );

    $_SESSION['_session_data'][_SHORT_NAME] = put_elements_into_dumb_array($elements);

    // execute template
    $res = $template->execute();
    // result may be an error
    if ( PEAR::isError( $res ) ) {
        echo $res->toString(), '
    } else {
        echo $res;
    debug_print_r( $_POST );
    debug_print_r( $elements );


and my as3 code looks like :

function addList():void{

// Continue button click
send_Btn.addEventListener(MouseEvent.CLICK, sendData);

// when clicked send data to php script
function sendData (event:MouseEvent):void {
// send data to php
var myData:URLRequest = new URLRequest(“url to php script above/php.php”);
myData.method = URLRequestMethod.GET;
var variables:URLVariables = new URLVariables;

// text field data    
variables.variablesData1    = testData.text;

//cobobox variables
variables.variablesData2    = _List.text;

myData.data = variables
var loader1:URLLoader = new URLLoader()
loader1.dataFormat = URLLoaderDataFormat.TEXT;

// Trace the result 
trace(testData.text  + " display");

//open URL in another web page. 
navigateToURL(myData, "_blank");