Send data from flash to PHP
Send Data in Flash.
Code:
Action Script Explanation: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");
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[‘playerName’];
$Score =$_POST[‘playerScore’];
?>


LinkBack URL
About LinkBacks


Reply With Quote
