title: how to pass parameter in action tag?
body: <p>I want to pass the <code>res</code> variable as a form action. Is this possible with HTML? </p>
  
  <pre><code> &lt;script&gt;
      var name =$("#name").val();
      var file =$("#file").val();
      var res= localhost:8080 + "/test/reg?&amp;name="+name+"&amp;file=" +file  ;
      &lt;/script&gt;
      &lt;form action="res" id ="form" method="post" enctype="multipart/form-data"&gt;
      Name:&lt;input type="text" name="name" id="name"/&gt;
      Upload:&lt;input type="file" name="file" id="file"/&gt; 
      &lt;/form&gt;
  
  document.forms["form"].submit();
  </code></pre>