PHP Classes

PHP HTML5 Form: Display and validate a form that uses HTML5

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (12)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-09-11 (6 months ago) RSS 2.0 feedNot enough user ratingsTotal: 153 All time: 8,990 This week: 115Up
Version License PHP version Categories
html5form 1.0MIT/X Consortium ...7.4HTML, Validation, PHP 7
Description 

Author

This package can display and validate a form that uses HTML5.

It provides functions to add different types of form fields, buttons, or additional HTML tags.

Currently, it supports the field types: bic, checkbox, checkbox group, color, credit card, currency, date, email, file, float, hidden, IBAN, integer, IP, name, password, radio, radio group, range, select, tel, text, textarea, time, URL, zip code.

It also supports button types: submit, reset, and button.

HTML tags are of any type you need to insert into your form, for example, HTML code for a multi-column form or JavaScript to get the visitor's position coordinates.

The HTML generated by this package for the form uses JavaScript to validate the input on-the-fly but also works when the browser does not enable JavaScript support. In this case, the validation will happen only using the rules specified by the generated HTML tags.

The generated JavaScript code assigns the input fields validated by a CSS class that can be either wrong or correct. Developers can define these CSS classes in the stylesheet to show the validation state of each input to the site user.

After the form is submitted, the class can take the submitted form input values to validate the form on the server side. The class returns either 'true' for a completely valid form or an array with the names of the non-valid fields.

Recommendations
Picture of René Mansveld
  Performance   Level  
Name: René Mansveld is available for providing paid consulting. Contact René Mansveld .
Classes: 3 packages by
Country: Germany Germany
Age: 58
All time rank: 3575198 in Germany Germany
Week rank: 438 Up21 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

Screenshots  
  • Screenshot.png
  • Screenshot2.png
  • Screenshot3.png
  Files folder image Files  
File Role Description
Files folder imagecss (2 files)
Files folder imageimages (3 files)
Files folder imagejs (2 files)
Files folder imagesrc (2 directories)
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file index.php Example Sample page

  Files folder image Files  /  css  
File Role Description
  Accessible without login Plain text file style.min.css Data Compiled stylesheet
  Accessible without login Plain text file style.scss Data Uncompiled stylesheet

  Files folder image Files  /  images  
File Role Description
  Accessible without login Image file cancel.png Data image
  Accessible without login Image file check.png Data image
  Accessible without login Image file ClosePopup.png Data image

  Files folder image Files  /  js  
File Role Description
  Accessible without login Plain text file common.js Data common javascript
  Accessible without login Plain text file cookies.js Data cookies script

  Files folder image Files  /  src  
File Role Description
Files folder imageclasses (2 files)
Files folder imageexternal (1 file)

  Files folder image Files  /  src  /  classes  
File Role Description
  Plain text file class.form.validation.php Class form validation class
  Plain text file class.html5form.php Class html5form class

  Files folder image Files  /  src  /  external  
File Role Description
  Plain text file EmailAddressValidator.php Class email validation class from google

 Version Control Unique User Downloads Download Rankings  
 0%
Total:153
This week:0
All time:8,990
This week:115Up
User Comments (1)
It could have been done much easier.
6 months ago (pataskun)
17%Star