// notes/

Forms

Coding tips and build notes by Mahir Faysal, a student web developer in Bangladesh: tested Python, HTML, CSS, JavaScript and PHP tutorials, plus notes from my Next.js and Gemini projects. Sample posts are marked and drafts stay in the admin area.

Simple Math Captcha in PHP With Sessions
Coding tips

Simple Math Captcha in PHP With Sessions

A simple PHP math captcha in two functions: store the answer in the session, check it once with ctype_digit and ===, then add a honeypot and time check.

October 2, 2026 · 8 min read

PHP Form Validation and Sanitization Guide
Coding tips

PHP Form Validation and Sanitization Guide

How to validate and sanitize PHP form input: trim, filter_var, mb_strlen and allow-lists, then escape output with htmlspecialchars, add CSRF and redirect.

October 2, 2026 · 11 min read

HTML Form Input Types and Validation
Coding tips

HTML Form Input Types and Validation

HTML input types and built-in validation attributes (required, minlength, min, max, step, pattern) with examples tested in Chrome, plus :user-invalid styling.

October 2, 2026 · 8 min read

// filter

You are inside a slice of the notes.

This view is only the category, tag, or search you asked for. Sample warnings still apply on any article that carries them. Drafts are still hidden. The full list is the learning notes page, which also explains how a note is written and why some posts are marked Sample.