Hey everyone,
Okay, I know this is an old topic by now. I've searched numerous places how to save to a simple text file, and at one point in my life I was able to do it. However, the code doesn't seem to work anymore ...
Flash Code:
Code:myData = new LoadVars(); submit.onRelease = function() { myData.Name = textbox.text; myData.sendAndLoad("save.php",myData,"POST"); }
PHP Code:
PHP Code:<?php
$name = $_POST['Name'];
$toSave ="Name=$name;"
$fp = fopen("saveLocal.txt", "w");
fclose($fp);
?>
Very simple it would seem, but it doesn't work. Thoughts?




Reply With Quote