smartie_on_computer
04-19-2006, 12:05 AM
hey everyone
i have a simple memo swf file in my local server. (using apache 2.0)
i can't load the contents of a txt fil without having to save something first
the load button has this:
this.open_btn.onRelease = function() {
_root.loadVariables("mess.txt?num"+random(99));
};
and the save button has:
this.save_btn.onPress = function() {
mess = _root.input_txt.text;
_root.loadVariables("index.php", "POST");
};
and the php has:
<?
$mess = $_POST['mess'];
$file = fopen("mess.txt", "w+");
fwrite($file, "mem=".$mess);
fclose($file);
?>
any idea???
i have a simple memo swf file in my local server. (using apache 2.0)
i can't load the contents of a txt fil without having to save something first
the load button has this:
this.open_btn.onRelease = function() {
_root.loadVariables("mess.txt?num"+random(99));
};
and the save button has:
this.save_btn.onPress = function() {
mess = _root.input_txt.text;
_root.loadVariables("index.php", "POST");
};
and the php has:
<?
$mess = $_POST['mess'];
$file = fopen("mess.txt", "w+");
fwrite($file, "mem=".$mess);
fclose($file);
?>
any idea???