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

22 lines
533 B
PHP
Raw Normal View History

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