Login   Register  
PHP Classes
elePHPant
Icontem

Antz_IntelliForm

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Anthony Gallon  >  Antz_IntelliForm  >  Download .tar.gz .zip  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Antz_IntelliForm
Base name: antz_intelliform
Description: Save submitted forms to prevent reposting warnings
Related classes: , , , , , , ,
Version: -
PHP version: 5
License: GNU General Public License (GPL)
All time users: 1082 users
All time rank: 2854
Week users: 1 user
Week rank: 2419
 

  Author  
Picture of Anthony Gallon
Name: Anthony Gallon is available for providing paid consulting. Contact Anthony Gallon .
Packages: 2 Browse all classes by Anthony Gallon Browse all classes by
Country: New Zealand New Zealand - PHP jobs in New Zealand
Age: ???
All time rank: 15308 in New Zealand New Zealand
Week rank: 1226 Up4 in New Zealand New Zealand Up
Innovation award
Innovation award
Nominee: 1x


  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.

  Groups   Rate classes User ratings   Applications   Related links   Files Files  

  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


  Innovation Award  
PHP Programming Innovation award nominee
May 2007
Number 2

Prize: One subscription to the PDF edition of the magazine by PHP Architect
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

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (81.2%)
Good (93.8%)
-
Sufficient (75.0%)
-
-
Not sure (57.5%)
988
Month:
Not yet rated by the users

  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 folder image 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.