22 lines
533 B
PHP
22 lines
533 B
PHP
<?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
|
|
if(file_exists("../../../userData/M3-04-messages.dat")) {
|
|
echo file_get_contents("../../../userData/M3-04-messages.dat");
|
|
}
|
|
}
|
|
?>
|