Backend/20240926/input_check.php

9 lines
254 B
PHP
Raw Permalink Normal View History

2024-09-26 09:50:18 +00:00
<?php
2024-09-29 06:53:01 +00:00
2024-09-26 09:50:18 +00:00
if (isset($_POST["input_text"]) ){
if (!str_contains($_POST["input_text"], " ")){
2024-09-29 06:53:01 +00:00
$_SESSION["valid_input"] = $_POST["input_text"];
2024-09-26 09:50:18 +00:00
} else {
echo "<h2>Nem szabad szóközt használni<h2>";
}
}