FAQ: Introduction to PHP Form Validation - Simple Validation

So far this course was good until we got to this section. Even the REGEX, which is a tough topic, was easy to understand. But this one not so much. The description and ‘step by step’ information is really confusing. Like why are you testing the form with ‘cantaloupe’ etc… if there has not even been any logic put into those fields yet? How are you even ‘submitting’ information for me when there’s no information put in the fields? It is like “write a function”, “yeah OK I wrote my function, what next? Oh you just put random things into the input fields without me seeing it? Oh.”

There’s just a lot of missing pieces to this one. Many. Eventually I got it after looking at the solution code, and I understood what was even being asked.

This lesson’s difficulty is a huge spike compared to the others and it almost seems a little unfair with what’s being asked. One solution involves:

   if ($_SERVER["REQUEST_METHOD"] === "POST" && strtolower($input[0]) != $letter) {

But I’m unsure whether strtolower has even been mentioned? If it has, it would have been really far back. The guidance on what to do here feels far too loose.

I’ve really enjoyed the lessons so far but this one isn’t enjoyable at all.