added session
This commit is contained in:
@@ -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>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user