WebbServerProg/www/public/Moment-3/pages/klotter.php

16 lines
446 B
PHP
Raw Normal View History

2024-09-16 08:26:33 +00:00
<?php
if (!(isset($_SESSION['inloggad']))) {
echo 'Du är inte inloggad';
} else {
echo '<h1>Klotterplanket</h1>
<form method="post">
<label>Meddelande</label><br>
<textarea name="message" cols="45" rows="5"></textarea><br />
<input type="submit" value="Skicka">
</form>';
include('dataBas/saveMSG.php');
if (file_exists("../../msg.dat")) {
echo file_get_contents("../../msg.dat");
}
}