xulu
(xulu)
29 Wrzesień 2008 16:39
#1
witam
znalazłem cos najprostszego chyba co moglem , na stronie wyświetla się ok’ niestety nowe testowe komentarze nie pojawiają się, gdzie jest błąd:
<? if ($message) { /* uncomment the next two lines to strip out html from input */ /* $name = strip_tags($name); */ /* $message = strip_tags($message); */ $message = ereg_replace("\r\n\r\n", “\n”, $message); $date = date(“l, F j Y, h:i a”); $message = "$name – $date $message "; $fp = fopen (basename($PHP_SELF) . “.comment”, “a”); fwrite ($fp, $message); fclose ($fp); } @readfile (basename(($PHP_SELF . “.comment”))); ? Your name: Your comment:
xulu
(xulu)
29 Wrzesień 2008 17:14
#3
Macx , coś ty mi to podał #-o tak wszystko rozjechane ze głowa mała daj spokój
============================================================================
EDIT :
(linka usunąłem–problem rozwiazany ;)) na samym dole stronki jest okienko ale coś w tym kodzie brakuje bo moge wpisac nick i kilka zdań jednak brak czegoś gdzie sie to ma zapisać …jeszcze raz
<? if ($message) { /* uncomment the next two lines to strip out html from input */ /* $name = strip_tags($name); */ /* $message = strip_tags($message); */ $message = ereg_replace("\r\n\r\n", “\n”, $message); $date = date(“l, F j Y, h:i a”); $message = "$name – $date $message "; $fp = fopen (basename($PHP_SELF) . “.comment”, “a”); fwrite ($fp, $message); fclose ($fp); } @readfile (basename(($PHP_SELF . “.comment”))); ? Nick: Dodaj komentarz:
Macx
(Macieke11)
29 Wrzesień 2008 17:26
#4
komentarze[/code]
Wklejasz ten kod gdzie chcesz mieć komentarze
xulu
(xulu)
29 Wrzesień 2008 17:35
#5
ale ja wiem gdzie chce mieć komentarze :lol: moj problem polega na tym ze niemam mozliwosci dodawania