AHHH DAMMIT!! I had the entire response typed out and then, like a moron I closed the window. Oh well here we go again. It works on my machine. I am going to attach the files.
http://www.livetoskateboard.com/test/FTsb/shoutbox0r.swf
Flash File:
//------- Frame 1
loadVariablesNum("viewtext.php", 0, "GET");
gotoAndPlay(3);
//------- Frame 2
dataLoader = new LoadVars();
stop();
//------- Frame 3
loadVariablesNum("viewtext.php", 0, "GET");
stop();
//------- "Kick It!" Button
on (release) {
_root.dataLoader.nName = _root.nName;
_root.dataLoader.nEmail = _root.nEmail;
_root.dataLoader.nMess = _root.nMess;
_root.dataLoader.send("shout.php", _root.dataLoader, "POST");
gotoAndPlay(3);
}
Shout.php:
<?
//-----------------------------
//FileName: shout.php
//-----------------------------
$nName = $_POST['nName'];
$nEmail = $_POST['nEmail'];
$nMess = $_POST['nMess'];
$nName = ereg_replace("&", "and", $nName);
$nEmail = ereg_replace("&", "and", $nEmail);
$nMess = ereg_replace("&", "and", $nMess);
$nName = stripslashes($nName);
$nEmail = stripslashes($nEmail);
$nMess = stripslashes($nMess);
$filename = "shout.txt";
$fp = fopen( $filename,"r");
$OldData = fread($fp, 80000);
fclose($fp);
$Input = "$nName<br>$nMess<br><u>Website: $nEmail</u><br><br>";
$New = "$Input$OldData";
$fp = fopen( $filename,"w");
fwrite($fp, $New);
fclose($fp);
echo "<script language=\"JavaScript\">
";
echo "self.close()";
echo "</script>";
?>
viewtext.php:
<?
//---------------------------------
//FileName: viewtext.php
//----------------------------------
$filename = "shout.txt";
$fp = fopen($filename,"r");
$savedtext = fread($fp, 80000);
fclose($fp);
print "text=$savedtext";
?>
Now if this doesn’t work then try to use the unique Identifier like LostInBeta ( :flower: ) originally suggested and it should work just fine.
Cheers,
Jubs :crazy: