PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 369 All time: 6,798 This week: 153Up
Version License PHP version Categories
autosave 1.0Public Domain5HTML, PHP 5


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.


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
Picture of Dave Smith
  Performance   Level  
Name: Dave Smith is available for providing paid consulting. Contact Dave Smith .
Classes: 51 packages by
Country: United States United States
Age: 58
All time rank: 618 in United States United States
Week rank: 13 Up2 in United States United States Up
Innovation award
Innovation award
Nominee: 32x

Winner: 7x

  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  
This week:0
All time:6,798
This week:153Up