Ahhh yes, Thank you very much, that fixed it! ( Previous Thread)😃
But now another 'problem' My new code =
<?php
//Capture data from $_POST array
$name = $_POST['myName'];;
$tosave = $_POST['myChat'];;
$closeit = ("0");
$openit = ("1");
$file = file_get_contents ("chat.txt");
$working = file_get_contents ("online.txt");
if($tosave = "/close") {
$fpclose = fopen("online.txt", "w");
if(fwrite($fpclose, $closeit)) ;
fclose($fpclose);
}
if($tosave = "/open") {
$fpclose = fopen("online.txt", "w");
if(fwrite($fpclose, $openit)) ;
fclose($fpclose);
}
if($working = "0"){
$save = ("thechat=Chat CLOSED");
} else {
$save = ("$file<br>
<b>$name</b>:<i>$tosave</i><br>");
}
$fp = fopen("chat.txt", "w");
if(fwrite($fp, $save)) ;
fclose($fp);
?>
All this blurts out in the chat.txt is
Name : /open
All the time what ever i submit in 'myChat'?
thanks,
MickyG