KSIĘGA GOŚCI

IMIĘ:

ADRES E-MAIL:

WPIS:

"; } fclose($fp); return $contents; } function addToGuestBook($imie, $email, $contents) { $fp = fopen("guestbook.txt", "w"); fputs($fp, $imie."\r\n"); fputs($fp, $email."\r\n"); fputs($fp, $contents."\r\n"); fputs($fp, "\r\n"); fputs($fp, $tempC); fclose($fp); } if($imie == "" && $email == "" && $contents == ""){ print(readGuestBook()); } else{ addToGuestBook($imie, $email, $contents); print(readGuestBook()); } ?>