all groups > flash data integration > august 2005 >
You're in the

flash data integration

group:

sending variables from flash to php to populate the database


Re: sending variables from flash to php to populate the database perry
8/12/2005 12:00:00 AM
flash data integration:
your code is ok!


"d:_:b" <webforumsuser@macromedia.com> schrieb im Newsbeitrag
news:ddi6sr$lfd$1@forums.macromedia.com...
[quoted text, click to view]

Re: sending variables from flash to php to populate the database d:_:b
8/12/2005 12:00:00 AM
sending variables from flash to php to populate the database d:_:b
8/12/2005 1:06:35 PM
hi!

i'm not quite sure how it works. for example, in my swf i have two labels
(first is dynamic text, the other one is input text). instance names of this
two labels are dynamic_text & input_text. i want to send this vars to php which
would insert this data to mysql database.

actionscript is:
var my_lv:LoadVars = new LoadVars();
my_lv.dynamic_text = dynamic_text.text;
my_lv.input_text = input_text.text;
my_lv.send("http://localhost/input.php", "_blank", "POST");

well, this is actually problem, i don't know how php reads this $_POST
variables.
is it ok to call post variables from swf like
<?php
$var1=$_POST['dynamic_text'];
$var2=$_POST['input_text'];
?>

tnx.

sorry about my english!

AddThis Social Bookmark Button