Validate a form using pure PHP

In this project we will validate a form using pure PHP.
The form can be used to make a new user register or sign up. The form consist of almost all the form fields that we use in our day to day projects.

Validate a form using pure PHP – Project requirements

  • Check for blank input type using php
  • Check the length of an input type using php
  • Check for duplicate values in php
  • Check for valid email format in php
  • Check for alphanumeric password in php
  • Check for numeric mobile number in php
  • Check for image upload and image format in php
  • Check for date of birth selection using select menu in php
  • Check for gender selection using radio button in php
  • Check for terms selection using check box in php

Validate a form using pure PHP – Validation rule

  • All fields are mandatory
  • First name and last name should be minimum 3 letters
  • Email should be a valid format eg. yourname@gmail.com
  • Password should be minimum 8 characters and alphanumeric
  • Confirm password should be same as primary password
  • Mobile number should 10 numeric digits
  • Profile picture should be either in jpg, gif or png format
  • User should select date of birth, gender and terms

Validate a form using pure PHP – File downloads

[post id=”386″ anchor=”yes” text=”Click here to download the project files for practice and complete source code”] 

Mail me at frontendboss@gmail.comif you have any feedback to improve this project or if you need any help with instruction or validation

2 thoughts on “Validate a form using pure PHP”

Comments are closed.