Reader Stacks

TOPIC

Forms & Validation

Handling form input, validation rules, and submission flows.

Validating Matching Passwords With Vanilla JavaScript

The native Constraint Validation API — setCustomValidity() specifically — lets a browser show its own built-in validation message for a custom check like password matching, without a framework.

Adding Google reCAPTCHA to a Laravel Form

A direct reCAPTCHA v3 integration — verify the token server-side against Google's API yourself, rather than depending on a third-party wrapper package that may or may not still be maintained.

Validating Array Input in Laravel

The dot-notation syntax for validating each item in an array field, and the * wildcard for a variable-length list — like a form that lets someone add multiple items dynamically.

GET vs POST vs REQUEST in PHP

$_GET, $_POST, and $_REQUEST are not interchangeable — the practical difference is where the data comes from, and why $_REQUEST is usually the wrong default choice.