Create a form that accepts a zipcode to be submitted against a weather API.
Submit the form to a JavaScript function that will build a url with the entered zipcode.
Submit an AJAX request to a PHP file with the payload.
Receive the JSON object back from the PHP file, parse and display some results on the page.