Writing Variables
Posted: Fri May 24, 2002 11:22 am
Hi all,
I'd really appreciate some help writing my variable to a text file on my server. I'm writing the program in Macromedia Director and using the following code:
on mouseUp me
postnettext("http//www.volume54.com/dcy4/app/add.php?", testVariable)
end
with the PHP:
<?php
function writefile("text.txt","$testVariable","a+")
{
$fp = fopen($filename, $mode);
fwrite($fp, $data);
fclose($fp);
}
?>
Can anyone tell me why this wont work? The variable is named testVariable in Director.
All input is greatly appreciated!!
Many thanks.
I'd really appreciate some help writing my variable to a text file on my server. I'm writing the program in Macromedia Director and using the following code:
on mouseUp me
postnettext("http//www.volume54.com/dcy4/app/add.php?", testVariable)
end
with the PHP:
<?php
function writefile("text.txt","$testVariable","a+")
{
$fp = fopen($filename, $mode);
fwrite($fp, $data);
fclose($fp);
}
?>
Can anyone tell me why this wont work? The variable is named testVariable in Director.
All input is greatly appreciated!!
Many thanks.