A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: CAN SOMEONE HElp me with this code??

  1. #1
    Junior Member
    Join Date
    Jun 2005
    Posts
    18

    CAN SOMEONE HElp me with this code??

    Hey can anyone help me with the following codes, and wat it all means and what i need to change

    Code:
    <?php 
    $A = $_POST['MyData1']; 
    echo "&MyData1REturn=".strrev($A)."&"; 
    $B = $_POST['MyData2']; 
    echo "&MyData2REturn=".strtoupper($B)."&"; 
    ?>
    ActionScript:
    Code:
    var result_lv:LoadVars = new LoadVars();
    result_lv.onLoad = function(success:Boolean) {
         if (success) {
              trace(this.MyData1REturn);
              trace(this.MyData2REturn);
         } else {
              trace("Error connecting to server.");
         }
    };
    var send_lv:LoadVars = new LoadVars();
    send_lv.MyData1 = "WhatEver";
    send_lv.MyData2 = "Xeef is the grreatest";
    send_lv.sendAndLoad("http://serried.net/test.php", result_lv, "POST");
    its mean to send a varable from php to flash but im lost


    someone sent me this as an asnwer to a question, but it makes no sense
    Last edited by softz; 06-26-2005 at 07:22 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center