← Prompt library
Level 6 · Backend
Validate a PHP form
Review {{FILE}} and implement server-side validation, output escaping, and the project’s CSRF protection. Preserve the current user flow.
Fill in the variables
Replace the placeholders with your project’s real details. Keep secrets out.
Example input
PROJECT_NAME: codex-practice · SCOPE: index.html
Expected result
Check missing fields, invalid formats, special characters, and invalid CSRF tokens.
Expected result
Review and edit before using it in your project.
Before you run
Practice safely: use a disposable folder and sample data. Check every placeholder and the actual project state before using this template.