tak...
A sorry...już działa..coś z plikiem było nie tak...
Kurcze...teraz z koleji mi całość nie działa...jak klikne "drugie" zapisz to tak jakby sesje się resetowały, i pojawia się
Warning: fopen(../users/_punkty.php) [function.fopen]: failed to open stream: No such file or directory in /home/filmy/domains/public_html/admin/recenzje_punkty.php on line 49
Warning: filesize() [function.filesize]: stat failed for ../users/_punkty.php in /home/filmy/domainsl/public_html/admin/recenzje_punkty.php on line 52
Warning: fread(): supplied argument is not a valid stream resource in /home/filmy/domains//public_html/admin/recenzje_punkty.php on line 52
Warning: rewind(): supplied argument is not a valid stream resource in /home/filmy/domains//public_html/admin/recenzje_punkty.php on line 55
Warning: flock() expects parameter 1 to be resource, boolean given in /home/filmy/domains/public_html/admin/recenzje_punkty.php on line 58
Warning: fwrite(): supplied argument is not a valid stream resource in /home/filmy/domains//public_html/admin/recenzje_punkty.php on line 60
Warning: flock() expects parameter 1 to be resource, boolean given in /home/filmy/domains//public_html/admin/recenzje_punkty.php on line 62
Warning: fclose(): supplied argument is not a valid stream resource in /home/filmy/domains//public_html/admin/recenzje_punkty.php on line 64
<?php
?>
<form name="login" action="recenzje_punkty.php" method="post">
<input type="text" name="login">
<input type="submit" value="wyslij">
</form>
<?
$_SESSION['login']=$_POST['login'];
echo $_SESSION['login'];
echo:";
?>
<?
$pole1 = trim($_POST['pole1']); $pole2 = trim($_POST['pole2']);
echo '<center><form action="recenzje_punkty.php" method="post"> N:<br><input type="text" name="pole1" style="w: 400px;" /><br /><br>
Tre:<br><textarea name="pole2" style="w: 400px; he: 100px;" /></textarea><br />
<input type="submit" value="ZAPISZ DANE!" />
</form>';
}
else {
$dane =
"T:<b>".
$pole1."</b><br>".
$pole2."<br>Dodane pr:<a href=../users/$login>".
$login."</a><hr> \n"
;
$file = '../users/'.$_SESSION['login'].'_punkty.php';
$fp=fopen(''.$file.'', "r+");
echo "Dane zostały zapisane!<br /> ";
}
?>