Forum Moderators: coopster

Message Too Old, No Replies

can't send vars from flash to php

anyone know how to send variable from flash to php?

         

al1911

9:52 pm on Mar 28, 2005 (gmt 0)

10+ Year Member



hi all,
i've followed every tutorial i've found on the net and i still can't get flash to send variables to a php script
i make text input fields, i give them all instance and var names, i create a button and give it actionscript like this...

on (release) {
c = new LoadVars();
c.send("script.php", "_parent", "POST");
}

in the php page i type out all the script and have tried identifying the posted variables with both $_POST and $HTTP_POST_VARS. the php script is called but the variables are never passed. i know this because when i go...

if (isset($_POST['fieldname'])) { echo "yes"; }
else { echo "no"; }

...it will echo "no".

does this explain my problem clearly enough?
any help greatly appreciated.

jatar_k

10:56 pm on Mar 28, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



maybe try to see if the php script is getting anything at all in the $_POST array like so

echo '<pre>';
print_r($_POST);
echo '</pre>';