Form fields: zipcode (textbox), insured yes or no (option button)
- "zipcode" field should validate that entry is 5 numeric digits - if not, alert "Please enter a valid 5 digit zip code."
When the "submit" button is hit, the form should redirect to "http://url-2.com&zip=xxxxx&insured=X" in a new "full" window. This should be compatible with all browsers. Notice that the zipcode and insured are added as url parameters.
In addition, the form should also pass source=xxxxx&afftrack=xx&affsub=xx&campid=xx which should be obtained from the landing page url.
For example, if the form is on [url removed, login to view] and the visitor lands with:
[url removed, login to view];campid=ppc&afftrack=3020&affsub=05
And if, the visitor enters zipcode "91710", selects insured "Yes" and hits go, the visitor should be redirected in a "new full window" to:
[url removed, login to view];insured=Y&source=google&campid=ppc&afftrack=3020&affsub=05
Please keep code as clean as possible
15 freelancers are bidding on average $42 for this job