Files
peehaitchpea/insertion.php
2025-05-01 10:11:47 +02:00

24 lines
616 B
PHP

<?php
if(isset($_GET["message"])) {
include "api.php";
query("INSERT INTO `for_moderation`(`text`) VALUES (\"" . $conn->real_escape_string($_GET["message"]) . "\");");
header("Location: /insertion.php");
die();
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Vkládání otázek</title>
</head>
<body>
<h1>Vkládání otázek na moderaci pro pana Stallmana</h1>
<form action="/insertion.php" method="get">
<label for="message">Obsah otázky:</label><br>
<textarea id="message" name="message" rows=8 cols=80></textarea><br><br>
<input type="submit" value="Odeslat!">
</form>
</body>
</html>