Login   Register  
PHP Classes

Class: Antz_IntelliForm

Icontem
elePHPant

  Classes of Anthony Gallon  >  Antz_IntelliForm  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Antz_IntelliForm Support forum
Base name: antz_intelliform
Description: Save submitted forms to prevent reposting warnings
Version: -
Required PHP version: 5
License: GNU General Public License (GPL)
 
  Author   Group folder image Groups   Detailed description  
  Applications   Related links   Files Files  

Author

Picture of Anthony Gallon
Name: Anthony Gallon <e-mail contact>
Published packages: 2 Browse this author's classes Browse this author's classes
Country: New Zealand New Zealand - PHP jobs in New Zealand
Home page: http://www.antzcode.com/

Innovation Award

PHP Programming Innovation award nominee
May 2007
Number 2
When an user needs to reload a page that was generated after submitting a form using the POST method, usually the browsers present a warning asking the user if he really wants to resubmit the form.

This kind of warnings is often annoying and confusing for the users. This class provides a solution to avoid these warnings, eventually making the user experience with the site more pleasant.

Manuel Lemos

Groups

Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Security Security protection and attack detection View top rated classes

Detailed description

This class can be used to prevent form reposting warnings by saving submitted form data.

It saves the values of forms submitted using the POST method to session variables for a given length of time.

Then it makes the browser redirect to the same page forcing a new request, this time using the GET method.

The form values previously submitted using the POST method are restored from the session variables.

This way, when the user returns to this page using the browser reloading the page or using the back button the browser willing display warnings saying "Are you sure you want to resubmit the form?"

The class can also generate hidden inputs with random values also stored in session variables to prevent Cross-site request forgery exploit attempts.

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Related links

Link Description
Documentation Explains the class more thoroughly and gives examples of how to use with various programming techniques

Files

File Role Description
Plain text file Antz_IntelliForm.php Class Now takes a unique identifier in ::seed() and submitted() to provide multiple forms per page
Plain text file example.php Example Example of usage
Plain text file IntelliForm.php Class Class file -- deprecated
Download all files: antz_intelliform.tar.gz antz_intelliform.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.