eintragen.php (dein file)
_______________
<?php
if($_POST['submit']) {
$datei = fopen("liste.txt", "r+");
fwrite($datei,$_POST['link'].'#'.$_POST['pfad'].'#'.$_POST['datum'].'#'.$_POST['status']."\n");
fclose($datei);
}
?>
<html>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="<?=$_SERVER['PHP_SELF']?>">
Link:<input type="text" name="link"><br>
Pfad:<input type="text" name="pfad"><br>
Datum:<input type="text" name="datum"><br>
Status:<select name="status">
<option>done</option>
<option>canceled</option>
</select><br>
<input type="submit" name="submit" value="Eintragen">
</form>
</body>
</html>
anzeige.php
___________
<HTML>
<HEAD>
<link rel="STYLESHEET" href="http://intranet.sbb.ch/apps/stylesheets/standard.css"
type="text/css">
<TITLE> Change Request Anträge</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#003399"><font color="#FFFFFF"><b> Change Request Anträge</b></font></td>
</tr>
</table>
<table border="0" width="500">
<TABLE width="500" border="0" cellpadding="0" cellspacing="0">
<TR>
<TD width="40%"><b>Antrag</b></TD>
<TD width="40%"><b>Datum</b></TD>
<TD width="20%"><b>Status</b></TD>
</TR>
<?php
$datei = fopen("liste.txt", "r") ;
while (!feof($datei)) {
$zeile = fgets($datei, 512) ;
$eintrag = explode("#", trim($zeile)) ;
?>
<TR>
<TD><b><A href="<?php echo $eintrag[0]; ?>">
<?php echo ($eintrag[1]); ?></A></b></TD>
<TD><b><?php echo $eintrag[2]; ?></b></TD>
<TD><b><?php echo $eintrag[3]; ?></b></TD>
</TR>
<?php
}
fclose($datei) ;?>
</TABLE>
</BODY>
</HTML>