";
echo "NAME: " . $zeile[0];
echo "
E-MAIL: " . $zeile[1];
echo "
KOMMENTAR:
" . $zeile[2] . "
";
}
fclose($fp);
}
}
function eintragenGaestebuch() {
if (isset($_GET['name']) AND isset($_GET['email']) AND isset($_GET['kommentar'])) {
if (($_GET['name'] != "") AND ($_GET['email'] != "") AND ($_GET['kommentar'] != "")) {
$str = $_GET['name'] . "#" . $_GET['email'] . "#" . $_GET['kommentar'] . "\n";
$fp = fopen("gaestebuch.csv", 'a');
fwrite($fp, $str);
fclose($fp);
}
}
}
?>