grumpmonkey
06-04-2005, 09:12 AM
so i've been working on this PHP stuff for about a week and i've had a break through. firstly i have a .swf called 'artloader.swf' which has this two input text boxes with these var names 'scroller' and 'scroller2'the .swf sends this script to a php file
var c = new LoadVars()
;c.scroller = this.scroller;
c.scroller2= this.scroller2;
c.send('artwriter.php')
my PHP script is like this:
<?php$var = $_POST["scroller"];
$var2 = $_POST["scroller2"];
$file = fopen("arttext.txt", "w");
fwrite($file, "&var1=$var\n&var2=$var2");
fclose($file);
?>
this PHP re-writes a txt file another .swf reads.Now this used to work fine until stupid me changed the
'c.send ('artwriter.php')'
line of script in the 'artloader.swf', it used to read differently but i chnaged it and now its doesn't work . I hope someone can help me with this. please, i'm sad and defeated.cheers
var c = new LoadVars()
;c.scroller = this.scroller;
c.scroller2= this.scroller2;
c.send('artwriter.php')
my PHP script is like this:
<?php$var = $_POST["scroller"];
$var2 = $_POST["scroller2"];
$file = fopen("arttext.txt", "w");
fwrite($file, "&var1=$var\n&var2=$var2");
fclose($file);
?>
this PHP re-writes a txt file another .swf reads.Now this used to work fine until stupid me changed the
'c.send ('artwriter.php')'
line of script in the 'artloader.swf', it used to read differently but i chnaged it and now its doesn't work . I hope someone can help me with this. please, i'm sad and defeated.cheers