vcherubini
Programmer
Hello:
I am having a might bit of trouble with a PHP/Flash page I am working on.
I have a database wherein I need to select data, and print it to a Flash piece.
I can get that to work fine:
[tt]
<?php
$var1 = "cool";
echo "var1=".$var1;
?>
Where var1 is a variable text field in Flash. That works fine.
Here is the dilemma, say I have two fields in the same Flash movie, var1 and var2, and I want to input data into them from the PHP script.
I have my Actionscript as:
[tt]
loadVariablesNum("load.php",0,"POST"
[/tt]
That will just load the first variable into Flash piece and nothing else. If I were to have a page called load2.php, and pass in var2 that way, it would work fine. However, there will be more than two variables loaded (in excess of 20) and having 20 PHP pages that do one thing is not desireable.
How can I go about making something like this work:
[tt]
<?php
$var1 = "cool";
$var2 = "vic";
echo "var1=".$var1;
echo "var2=".$var2;
?>
[tt]
Any help on as how to make that work is very appreciated.
Thank you.
-Vic vic cherubini
vikter@epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====
I am having a might bit of trouble with a PHP/Flash page I am working on.
I have a database wherein I need to select data, and print it to a Flash piece.
I can get that to work fine:
[tt]
<?php
$var1 = "cool";
echo "var1=".$var1;
?>
Where var1 is a variable text field in Flash. That works fine.
Here is the dilemma, say I have two fields in the same Flash movie, var1 and var2, and I want to input data into them from the PHP script.
I have my Actionscript as:
[tt]
loadVariablesNum("load.php",0,"POST"
[/tt]
That will just load the first variable into Flash piece and nothing else. If I were to have a page called load2.php, and pass in var2 that way, it would work fine. However, there will be more than two variables loaded (in excess of 20) and having 20 PHP pages that do one thing is not desireable.
How can I go about making something like this work:
[tt]
<?php
$var1 = "cool";
$var2 = "vic";
echo "var1=".$var1;
echo "var2=".$var2;
?>
[tt]
Any help on as how to make that work is very appreciated.
Thank you.
-Vic vic cherubini
vikter@epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====