note 127013 deleted from function.trim by cmb
| From: | cmb@php.net | Date: | Tue, 26 Apr 2022 13:11:18 +0000 |
| Subject: | note 127013 deleted from function.trim by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218320@lists.php.net to get a copy of this message | ||
Note Submitter: matisvideos at seznam dot cz
----
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$prijmeni = test_input($_POST["prijmeni"]);
$jmeno = test_input($_POST["jmeno"]);
$pohlavi = test_input($_POST["pohlavi"]);
$skupina = test_input($_POST["skupina"]);
$vzdelani = test_input($_POST["vzdelani"]);
$obec = test_input($_POST["obec"]);
$kraj = test_input($_POST["kraj"]);
}
function test_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}