This is a test of Google Suggest-type lookups for a query. This technique uses XmlHttp requests to get a new list of lookup results in the background every time the value in the lookup field changes, so this page doesn't have to be reloaded over and over again. To improve performance, lookup results are also cached locally so duplicate requests aren't made during a given session.
Just start typing a US Zip Code (sort of slowly, for the best effect) in the input box below, and a database list of zip codes will be searched as you type, presenting you with up to 10 matches for what you're typing. You can then use your mouse or the arrow keys to select a zip code from the drop-down list that appears, and either click the result (if you're using a mouse) or press enter or tab (if you're using the arrow keys) to select a value.
Notes about this technique:
That being said, all you're really worried about is the format of the output. With the JavaScript XmlHttp code that I'm using here, a lookup of "9990" should return a result like this from the backend code:
showQueryDiv("9990", new Array("99901","99903"), new Array("KETCHIKAN GATEWAY, AK","PR WALES-OUTR KTCH, AK"))
The result should be a single line of plain text, not an HTML page. If you're a coder, you should be able to figure out the implementation yourself. If you're not, you probably shouldn't be trying to do this in the first place.