I need to pass a value from a form to an external php script via a url, but my code isn't working. When I submit my form, I'm expecting the url to look like this: example.com/script.php?zip=12345 but what I'm getting is this: example.com/script.php? with nothing after the ?. My form code is below. Am I doing something wrong, or do I need to change a setting somewhere?
<form id="map" method="get" action="script.php"> <input type="text" class="inline" id="zip" /> <input type="submit" class="button" value="Go" /> </form>