hi.
I´m building a very simple chat room using php and flash.
flash sends the variables “name” and “user” to php.
(“name” and “user” are inserted in a input box.)
submit.onPress = function () {
getURL ("counter.php", "_blank", "POST");
}
I also built Php script that stores the chat log in a text file (count.txt).
<?php
$name = $_POST['name'];
$user = $_POST['user'];
$file = fopen("count.txt", "a+");
fwrite($file,"
");
fwrite($file,$user);
fwrite($file,":");
fwrite($file,$name);
fclose($file);
?>
ok. all the code is working fine, but every time a person submits its text, a blank internet window opens…
How can i stop that?
:?) thx in advance.
See for your self http://novadez.100webspace.net/php/php.swf
(i dont know if it is working… try to copy to your adress bar if bad link.)