threadr.lostcave.ddnss.de/threadr/board/post.php

12 lines
486 B
PHP

<?php
%REQUIRE_LOGIN%
$pdo = new PDO('mysql:host=localhost;dbname=web', 'webstuff', 'Schei// auf Pa$$w0rter!');
$query = "SELECT id, name, authentication_algorithm FROM users;";
?>
<section>
<form action="%CONTENT_DIR%/board/?action=submit" method="post">
<input type="text" name="post" maxlength="65535" placeholder="You can contribute to the conversation here. Tell us your story in up to 65535 characters..."/>
<input type="submit" value="Post">
</form>
</section>