i have a problem with forms on windows. everything i enter on the mainpage doesn't go to the php script.
--enternews.php--
<form action="newnews.php" method="post">
Temat: <input type="text" name="ng"><br>
Autor: <input type="text" name="au"><br>
Email: <input type="text" name="em"><br>
Wiadomość: <textarea name="wi" rows=10 cols=50></textarea><br>
<input type="submit" value="Wyślij">
</form>
--cut here--
--newnews.php--
<?PHP
$sc = fopen("database.txt","r");
$dt = fopen("dbcopy.txt","w+");
while(!feof($sc))
{
$linia = fgets($sc);
fwrite($dt,"$linia");
}
fclose($sc);
fclose($dt);
$datenow = date("d.m.y");
$timenow = date("H:i:s");
$filnm = date("dmyHis");
$db = fopen("database.txt","w+");
$dbrst = fopen("dbcopy.txt","r");
fwrite($db,"$filnm.txt\n");
while(!feof($dbrst))
{
$linia = fgets($dbrst);
fwrite($db,"$linia");
}
fclose($db);
fclose($dbrst);
$nwnsfl = fopen("$filnm.txt","w+");
fwrite($nwnsfl,"$ng\n");
fwrite($nwnsfl,"$au\n");
fwrite($nwnsfl,"$em\n");
fwrite($nwnsfl,"$datenow $timenow\n");
fwrite($nwnsfl,"$wi\n");
fclose($nwnsfl);
?>
--cut here--
my system info:
Windows ME PL 4.90.3000
Apache 2.0.39 and 1.3.26
Php 4.2.1
please help!
regards,
gemini

