Jeg vil mene det skal være noget i den her stil:
blog1.php:
----------
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title>BLOG</title>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
</head>
<body>
<form action="blog2.php" method="post">
<table>
<tr>
<td></td>
<td><input type="hidden" name="skriv" VALUE=1></td>
</tr>
<tr>
<td>Navn:</td>
<td><input type=text name="navn"></td>
</tr>
<tr>
<td>E-mail:</td>
<td><input type=text name="email"></td>
</tr>
<tr>
<td Valign="top">Besked:</td>
<td><textarea name="besked" cols="30" rows="5"></textarea></td>
</tr>
<tr>
<td></td>
<td><input type=submit VALUE="Send"></td>
</tr>
</table><br /><br />
</form>
</body>
</html>
blog2.php:
----------
<?php
include ('conn.php');
if(isset($_POST['skriv'])) {
$besked = nl2br($besked);
$dato_array = getdate();
$dato = $dato_array["mday"]. "/".$dato_array["mon"]. "-".$dato_array["year"];
mysql_query("INSERT INTO bog(navn, email,dato, besked) VALUES('$navn' , '$email', '$dato', '$besked')");
}
$foresp = mysql_query("SELECT navn, email, dato, besked FROM bog ORDER BY nr DESC");
$out = "<table>\n";
while($data = mysql_fetch_row($foresp)) {
$out .= "<tr><td Valign=top>";
$out .= "fra:<a href=\"mailto:".$data[1]."\">".$data[0]."</a>";
$out .= "<br />".$data[2];
$out .= "</td><td Valign=top>".$data[3]."</td></tr>";
}
$out .= "</table>\n";
echo $out;
?>