ok, ich würde gerne haben, das sich die Seite automatisch aktualisiert wenn ich einen Neuen Beitrag geschrieben habe...wie mach ich das am Besten ? Auf eine "Warteseite" verlinken die dann nach einer gewissen Zeitspanne wieder zurückleitet ? Wenn ja: wie würd ich das machen, kann kein Java oder sowas.
Code:
<body bgcolor="#888888">
<table width="600" align="center" bgcolor="#000000" cellspacing="1" cellpadding="3">
<tr>
<td height="30" bgcolor="#333333">Subject</td>
<td height="30" bgcolor="#333333">User</td>
<td height="30" bgcolor="#333333">Date</td>
<tr>
<?php
read();
?>
<tr>
<td height="30" bgcolor="#333333" colspan="3"></td>
</tr>
</table>
<br>
<form action="overview.php" method="post">
<table width="600" align="center" bgcolor="#000000" cellspacing="1" cellpadding="3">
<tr>
<td height="30" bgcolor="#333333" colspan="2">Beitrag schreiben</td>
</tr><tr>
<td width="150" bgcolor="#888888">Name</td>
<td width="450" bgcolor="#888888"><input type="text" name="array[name]" size="60"></td>
</tr><tr>
<td width="150" bgcolor="#888888">Subject</td>
<td width="450" bgcolor="#888888"><input type="text" name="array[subject]" size="60"></td>
</tr><tr>
<td valign="top" width="150" bgcolor="#888888">Beitrag</td>
<td width="450" bgcolor="#888888"><textarea name="array[content]" rows="5" cols="51"></textarea></td>
</tr><tr>
<td height="30" align="right" bgcolor="#333333" colspan="2"><input type="hidden" name="submitted" value="submitted"><input type="submit" name="submit" value="submit"></td>
</tr>
</table>
</form>
<?php
if ($submitted) {
write($array[name],$array[subject],$array[content]);
}
?>
</body>

Kommentar