added session

This commit is contained in:
Digi committed 2024-09-29 08:53:01 +02:00
1 parent 22c245f14d
commit 6b33de27f0
7 files changed
+37 -13

No files matched your search

+2 -2
View File
@@ -1,8 +1,8 @@
<?php
if (isset($_POST["input_text"]) ){
if (!str_contains($_POST["input_text"], " ")){
$valid_input = $_POST["input_text"];
global $valid_input;
$_SESSION["valid_input"] = $_POST["input_text"];
} else {
echo "<h2>Nem szabad szóközt használni<h2>";
}