PHP Classes

AutoFill: Generate form text inputs with auto-fill support

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (11)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 3,514 All time: 952 This week: 488Up
Version License Categories
auto_fill 1.0.0GNU General Publi...HTML


This class can generate form text input values that can automatically complete the values entered by the user with a given list pre-defined values.

The class generates the necessary Javascript code to add auto-complete support to a form text input with a given identifier.

You can define the maximum number of options that will be displayed to let the user pick one that completes the text that he entered.

You can also define whether the form should be submited when user select one of the options.
Update on Aug 22, 2005

- Fixed the autofill box position when using tables.
- Added keyboard navigation through the autofill options.

Innovation Award
PHP Programming Innovation award nominee
February 2005
Number 3

Prize: One book of choice by SAMS
In some applications, the users have to enter in forms text values that may be long, hard to remember or easy to misspell.

In some cases, the users are expected to enter text values from list that can be predicted. In these cases it would be helpful if the input field could present visual aids to help the user enter faster the possible values that he may have in mind.

This class provides a means to present that kind of visual help by presenting a list of possible text values that may complete the initial text characters as the users types them.

This way, the forms with text input fields may become more usable as they require that the user types less to get what he wants.

Manuel Lemos
Picture of Carlos Reche
Name: Carlos Reche <contact>
Classes: 10 packages by
Country: Brazil Brazil
Age: 40
All time rank: 613 in Brazil Brazil
Week rank: 301 Down25 in Brazil Brazil Down
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Plain text file class.autofill.php Class AutoFill class file
Accessible without login Plain text file example.php Example Example file

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:952
This week:488Up
User Ratings User Comments (2)
 All time
Very nicely done! Well documented internally and pleasant fo...
13 years ago (Tom Carnevale)
14 years ago (kishore kumar)