Gastenboek
$amount=15; if ($_GET['action']=='write') { header('location: wwppaa.php?action=read&start=0'); $file=fopen('wwppaa.txt','a'); $message=str_replace("\r",'',$message); $message=str_replace("\n",'{{',$_GET['message']); fwrite($file,$_GET['name'].'|||'.$_GET['email'].'|||'.date('d-m-Y').'|||'.$_GET['url'].'|||'.$message."\n"); fclose($file); } $start=(isset($_GET['start'])?$_GET['start']:0); $wwppaa=Array(); $wwppaa=file('wwppaa.txt'); ?>
Berichten echo $start+1; ?> tot en met echo min($start+$amount,sizeof($wwppaa)); ?>.
|
Nieuw bericht |