Files
peehaitchpea/insertion.php

24 lines
633 B
PHP

<?php
if(isset($_GET["message"])) {
include "api.php";
query("INSERT INTO `for_stallman`(`text`, `selected`) VALUES (\"" . $conn->real_escape_string($_GET["message"]) . "\", false);");
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>