PHP Classes

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

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

Author

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: 36
All time rank: 213684 in Italy Italy
Week rank: 170 Up7 in Italy Italy Up

  Files folder image Files (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,188
This week:0
All time:3,191
This week:455Up