alixaxel's solution to "HTML form that populates the city and state given the zip code"

Here is my solution: https://gist.github.com/3904626. It's a single file, but it was necessary a bit of server-side code (in this case PHP) to overcome the `Access-Control-Allow-Origin` errors, since WebserviceX.NET doesn't return data in JSON-P. I've implemented client-side and server-side validation for the Zip + 4 so it should run smoothly. I'veThe implementedonly requirement is that you name the file `zip.php`, if you change the file name (or split the server-side from the client-side and server-side validation for the zip code) you so it should runupdate [line smoothly151](https://gist.github.com/3904626#L151) as well.

User: alixaxel

Question: HTML form that populates the city and state given the zip code

Back to question