Dynamic Form with Dropdown Menu and Text Box
People have a drop down menu within this script or form that has three choices. Each choice needs to reference a different URL for the choice, and then go to it on Submit. Thats the easy part. The hard part is that the script/form also has a text box in it that has a zip code to be placed inside. So for example, someone chooses the first option, and puts in a zipcode within the text field and hits "submit", so when its submitted it goes to a URL + the zipcode.
This is kind of a crude bit of code, I know (just took it briefly from dreamweaver), but what Im trying to do with the above is have the "input type="text"" be filled it, and connected to one of the "[ZIPCODE]" options on submit. So you can put a zipcode into the text field, choose option one, hit submit, and it will go to the URL, replacing the "ZIPCODE" area of the URL with the zipcode that was typed in. Im sure this is more complicated, but Im not sure where to start/complete/finish this. Any ideas? Thanks
<select name="selected" id="target">
<input type="submit" name="submit" id="submit" value="Submit"/>