PHP Classes
elePHPant
Icontem

PHP AutoSave Form Draft: Save form input values in browser storage as draft

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-05-10 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 340 All time: 6,878 This week: 400Up
Version License PHP version Categories
autosave 1.0Public Domain5HTML, PHP 5
Description Author

This class can save form input values in browser storage as draft.

It generates JavaScript code periodically will save the values of the fields of a given form to local browser storage.

The code can restore the values of the field values in case the form is not submitted and the field values were lost because the browser closed or for some other reason.

The time interval on which the form draft values are saved is configurable.

The list of fields to be saved and the type of browser storage to be used is also configurable. Currently it supports HTML5 session or local storage.

Recommendations

Automatic saving of form data
Automatically save data while typing after every 20 mins

Innovation Award
PHP Programming Innovation award nominee
June 2015
Number 5
Sometimes users of an application need to enter a lot of information in a form.

If for some reason, like for instance power or connectivity interruption, they do not submit the form before finishing entering all the information, they may lose the work done previously to enter part of the information.

This class provides a solution to prevent that users lose values entered in form fields by saving draft values to browser storage that can be recovered later.

Manuel Lemos
  Performance   Level  
Name: Dave Smith is available for providing paid consulting. Contact Dave Smith .
Classes: 40 packages by
Country: United States United States
Age: 53
All time rank: 10612 in United States United States
Week rank: 7 Up1 in United States United States Up
Innovation award
Innovation award
Nominee: 27x

Winner: 6x

  Files folder image Files  
File Role Description
Plain text file autosave.class.php Class Main Class
Accessible without login Plain text file example.php Example Example Usage

 Version Control Unique User Downloads Download Rankings  
 0%
Total:340
This week:0
All time:6,878
This week:400Up