You need close
at the end of the code, because all inputs should be include within form, specially
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'];