Send data from flash to PHP

satheesh

New Member
Messages
883
Reaction score
0
Points
0
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:
<?php
$name  =$_POST[‘playerName’];
$Score =$_POST[‘playerScore’];
?>
 
Last edited:
Top