title: How to action a rest request after submitting a form
body: <p>Trying to do the following, created this simple form for for a test:</p>
  
  <pre><code>&lt;form name="input" action"submit.jsp" method="get"&gt;
  Change background-color:&amp;nbsp;#&lt;input type="text"&gt;&amp;nbsp;&lt;input type="submit"value="submit"&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>I am trying to, on clicking the button to take the value from the text box and insert that into a link (which is going to be a rest request) and action it.</p>
  
  <p>I of course need to make sure no one can see the user and password I will pass along the request as well, can someone point me in the right direction of where to start?</p>
  
  <p>I was thinking maybe to use </p>
  
  <pre><code>document.getElementById("id")
  </code></pre>
  
  <p>And have the input as:</p>
  
  <pre><code>&lt;input name="bgcolor" id="bgcolor"&gt;
  </code></pre>
  
  <p>I'm just not sure how to execute and hide a rest request with a password inside.</p>
  
  <p>To get</p>
  
  <p>Thanks!</p>