+ Reply to Thread
Results 1 to 1 of 1

Thread: Send data from flash to PHP

  1. #1
    satheesh's Avatar
    satheesh is offline x10 Elder satheesh is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Tamil Nadu,India
    Posts
    883

    Smile Send data from flash to PHP

    Send data from flash to PHP

    Send Data in Flash.

    Code:

    Code:
    var my_lv:LoadVars = new LoadVars();
    my_lv.playerName = playerName_txt.text;
    my_lv.playerScore = playerScore_txt.text;
    my_lv.send("setscore.php", "_blank", "POST");
    Action Script Explanation:
    var my_lv:LoadVars = new LoadVars(); ->Create a Object.
    my_lv.send("setscore.php", "_blank", "POST"); -> Send a data to php.


    Get a data from flash

    Code:
    PHP Code:
    <?php
    $name  
    =$_POST[&#8216;playerName’];
    $Score =$_POST[&#8216;playerScore’];
    ?>
    Last edited by satheesh; 10-20-2007 at 01:42 AM.
    I want to buy Some Scripts So Please Click This link:http://affiliate.tufat.com/index.php?id=4384
    Please rate my site:Click here




+ Reply to Thread

Similar Threads

  1. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM
  2. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  3. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers