News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Form Validation with PHP
March 12, 2012 @ 12:17:03

On PHPMaster.com today there's a new tutorial showing how to do some form validation using some basic PHP (no external libraries or tools here). This is a beginner level tutorial to help you get familiar with the concepts behind doing validation (and

In this article you'll construct and validate a simple form using HTML and PHP. The form is created using HTML and validation and processing of the form's contents is done with PHP. The goal is to teach you some basic HTML form elements and how their data is accessible to you in your PHP scripts.

They start with the form itself, a basic setup with various kinds of fields - text, select, radio and a checkbox. Both the HTML markup and the PHP to do the validation is included. They check for things like "not empty", "must select one" and optional fields. Be sure to read the comments for some good tips on filtering the form's input too.

0 comments voice your opinion now!
validation form tutorial html beginner


blog comments powered by Disqus

Similar Posts

WeberDev.com: PHP 101 (part 11) - Sinfully Simple (SimpleXML)

Brian Swan's Blog: Performance Tuning PHP Apps on Windows/IIS with Output Caching

Hardened-PHP Project: PHP HTML Entity Encoder Heap Overflow Vulnerability

ITNewb.com: Building a Spam Free Contact Form without Captchas

Peter Goodman's Blog: Observers and Dispatchers


Community Events

Don't see your event here?
Let us know!


laravel5 library series unittest language framework security laravel extension community api podcast version voicesoftheelephpant opinion symfony release threedevsandamaybe interview introduction

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework