WebServ/www/public/M3/06/pages/klotter.php

16 lines
500 B
PHP
Raw Normal View History

2024-09-06 13:22:36 +00:00
<h1>Klotterplanket</h1>
<form action="saveMsg.php" method="post">
2024-09-09 12:19:57 +00:00
<?php
echo '<label>Namn</label><br>';
echo '<input type="text" value="' . $_SESSION['username'] .'" disabled name="name"> <br/>';
?>
2024-09-06 13:22:36 +00:00
<label>Meddelande</label><br>
2024-09-09 12:19:57 +00:00
<textarea name="message" cols="45" rows="5"></textarea> <br/>
2024-09-06 13:22:36 +00:00
<input type="submit" value="Skicka">
</form>
<?php
if(file_exists("../../../M3-06-messages.dat")) {
echo file_get_contents("../../../M3-06-messages.dat");
}
2024-09-09 12:19:57 +00:00
?>