note 127171 added to function.strlen

From: Date: Fri, 10 Jun 2022 20:04:53 +0000
Subject: note 127171 added to function.strlen
Groups: php.notes 
Request: Send a blank email to php-notes+get-218582@lists.php.net to get a copy of this message
Here is the code for a user registration: if (empty($_POST["element_2"])) { $passwordErr = "Passwort fehlt! "; } else { $password = test_input($_POST["element_2"]); if ($user == $password) { $passwordErr = "Passwort darf nicht Username sein! <br>"; } if (strlen($password) < 7) { $passwordErr .= "Mindestlänge 7 Stellen!"; } } And: echo $passwordErr; ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.12.131 (proxied: 217.149.170.145) ---- Manual Page -- https://php.net/manual/en/function.strlen.php Edit -- https://main.php.net/note/edit/127171 Del: integrated -- https://main.php.net/note/delete/127171/integrated Del: useless -- https://main.php.net/note/delete/127171/useless Del: bad code -- https://main.php.net/note/delete/127171/bad+code Del: spam -- https://main.php.net/note/delete/127171/spam Del: non-english -- https://main.php.net/note/delete/127171/non-english Del: in docs -- https://main.php.net/note/delete/127171/in+docs Del: other reasons-- https://main.php.net/note/delete/127171 Reject -- https://main.php.net/note/reject/127171 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#218582) next »