You need close </form> at the end of the code, because all inputs should be include within form, specially <input type="submit" name="ch_but_logon" value="Entrer"> that are used to validate in your PHP if (isset($_POST['ch_but_logon'])) {
And you need remove "dot" before "equals" symbol because $txt was't created before, and this concat operation are unnecessary:
$txt = $_POST['named23'];