35 lines
1.2 KiB
PHP
35 lines
1.2 KiB
PHP
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="pl">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>Witalnia - MaszToZadanieDomowe.com</title>
|
||
|
|
<link href="/favicon.ico" rel="favicon">
|
||
|
|
<link href="/assets/css/main.css" rel="stylesheet">
|
||
|
|
<link href="/assets/css/tabliczka.css" rel="stylesheet">
|
||
|
|
<script data-goatcounter="https://zeszyt.nonamesoft.xyz/count" async src="/assets/js/count.js"></script>
|
||
|
|
<script type="module" src="/assets/js/index.js"></script>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<header-comp></header-comp>
|
||
|
|
<main>
|
||
|
|
<br>
|
||
|
|
<form method="post" action="/tabliczka.php">
|
||
|
|
<h2>Enter sign text</h2>
|
||
|
|
<textarea name="zawartosc" maxlength="52" rows="4"><?php
|
||
|
|
if (isset($_POST["zawartosc"])) {
|
||
|
|
setcookie("tabliczka", $_POST["zawartosc"]);
|
||
|
|
echo(htmlspecialchars($_POST["zawartosc"]));
|
||
|
|
} else if (isset($_COOKIE["tabliczka"])) {
|
||
|
|
echo(htmlspecialchars($_COOKIE["tabliczka"]));
|
||
|
|
} else {
|
||
|
|
echo("");
|
||
|
|
}
|
||
|
|
?></textarea>
|
||
|
|
<input type="submit" name="submit" value="Done">
|
||
|
|
</form>
|
||
|
|
</main>
|
||
|
|
<footer-comp></footer-comp>
|
||
|
|
</body>
|
||
|
|
</html>
|