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.

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.