PHP Classes

PHP Form To DB: Validate form submission and save to MySQL records

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,186 All time: 3,192 This week: 160Up
Version License PHP version Categories
form-to-db 1.0GNU General Publi...5.0PHP 5, Databases, Validation


This class can validate form submission and save to MySQL records.

It can extract values of inputs of a submitted form and validate them according to several possible validation rules.

Currently it can validate inputs as email addresses, titles, names, database column names, random keys, messages, integers, floating point numbers, phone numbers, dates, URLs, MD5 hashes, text clean of HTML, postal codes.

The validates form values may be saved to new MySQL database table record or update an existing record.

Picture of Edoardo
Name: Edoardo <contact>
Classes: 1 package by
Country: Italy Italy
Age: 35
All time rank: 213384 in Italy Italy
Week rank: 387 Up16 in Italy Italy Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file Example_simple.php Example Example1
Accessible without login Plain text file Example_validating.php Example Example2
Plain text file FormToDb.class.php Class Main file

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,192
This week:160Up