Backend/20240926/input_check.php
2024-09-29 08:53:01 +02:00

9 lines
254 B
PHP

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