Click to See Complete Forum and Search --> : help php/flash


brøken
04-18-2003, 08:07 PM
i know its not dreamweaver.. but i had no idea where else to put it.

heres the info, simple enough since im just learning to use php with flash.. any ideas on why its not resolving ($theName) to = "rob" ??:

actionscript:

dump=new LoadVars();
dump.name="rob";
dump.sex="male";
dump.onLoad=translate;
dump.sendAndLoad("count.php",dump,"POST");

function translate(){
trace(dump.concat);
}

php:

<?
$theName=$_POST['name'];
echo "&concat=$theName&";
?>


output from flash:

$theName
.. it wont reslove(or whatever word) the variable
any ideas on what it can be?

PHPdev
04-30-2003, 06:20 PM
Sorry I dont have a direct answer to your issue, but you can try using PHPINFO() to see the names of all the POST variables passed back to the server. The variable may not be called name...

Just a thought


PHPDev