If you could instead copy and paste your code as text. Once pasted, highlight what you pasted and click the `{}` button in the editor to preserve line feeds and white space. This way we don't have to transcribe text from the picture if we want to replicate on our own machines.
– JNevillSep 15 '22 at 20:06
Do you ever access `login.php` without a `POST` request, e.g. as a sign-on page? You didn't check for the existance of those keys before trying to grab them, hence the (potential) error.
– RogueSep 15 '22 at 20:13