title: Get URL parameters and insert into form action url with javascript
body: <p>I have an html page that people access using an affiliate link, so it has affiliate code in the url (<a href="http://www.site.com?cmpid=1234&amp;aid=123" rel="nofollow noreferrer">http://www.site.com?cmpid=1234&amp;aid=123</a>). I want to add the cmpid and the aid to the form action url (so when submitted, it submits to the url /form.aspx but adds the cmpid and aid to the end, ie: form.aspx?cmpid=1234&amp;aid=123). </p>
  
  <p>I have no other option than javascript. I can't make this page php or aspx.  </p>