This is a demonstration of AutoFill class, wich allows you to easily create cross-browser auto-fill options to text fields. You don't have to worry about the Javascript part. Only create the text field and give it an specified "id". Then create the PHP part, wich you can learn by seeing the source code of this script.