lokki
11-11-2006, 12:31 AM
I have a PHP script that returns a string value after some function runs. That variable is typically a message that is echoed to the screen which gives the user success/fail information, and some details. I'm sending an object to the PHP script via objectName.sendAndLoad("url.php", receiverObject, "POST").
I've tried using the following
echo "myVariable=$importantVariable"
but can't get Flash to see the variable. It prints OK in the HTML, as expected, but I think Flash sees the result as a String rather than an object or container, e.g., to Flash it's just "myVariable=Whatever message the variable returns" as text.
How can I embed the results of the variable in a way that Flash can understand? If I look at receiverObject by itself, it's the entire rendered HTML page, including the above mentioned string.
Any help on this?
I've tried using the following
echo "myVariable=$importantVariable"
but can't get Flash to see the variable. It prints OK in the HTML, as expected, but I think Flash sees the result as a String rather than an object or container, e.g., to Flash it's just "myVariable=Whatever message the variable returns" as text.
How can I embed the results of the variable in a way that Flash can understand? If I look at receiverObject by itself, it's the entire rendered HTML page, including the above mentioned string.
Any help on this?