<?php 
/*
 * Simple guestbook.
 * Output is in Norwegian, since it was used on a norwegian page.
 * The rest of the code is a bit mixed in regards to english/norwegian.
 * Sorry, I'm just not used to coding for norwegian pages or something ;-)
 *
 * Written by Knut Auvor Grythe ( http://partyreg.net/~knuta/ )
 */

$filename "messages.txt";

// just put this one in here, so PHP won't mess with it.
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/REC-html401-19991224/strict.dtd">'
?>
<html>
<head>
<title>Siris gjestebok</title>
<style type="text/css">
body {    background-color: #CC0000; 
input,textarea {    background-color: #cc0000; color: #000000; font-family: verdana,sans-serif; font-size: 10px; border-width: 1px; border-color: #000000;
</style>
</head>
<body>
<h1>Enkel gjestebok</h1>
<p>
    Legg igjen en hilsen i gjesteboka.
</p>
<form method="post" action="gjestebok-submit.php">
    <p>
        Fra:<br>
        <input name="fra" type="text">
    </p>
    <p>
        Hjemmeside:<br>
        <input name="hjemmeside" type="text" value="http://">
    </p>
    <p>
        E-mail:<br>
        <input name="epost" type="text">
    </p>
    <p>
        Kommentar:<br>
        <textarea name="kommentar" cols="75" rows="8"></textarea>
    </p>
    <p>
        <input type="submit" value="send" style="background-color: #cc0000; color: #000000; font-family: verdana; font-size: 10px;">
    </p>
</form>

<?php
    readfile
($filename);    
?>
</body>
</html>