title: how to Link html form and anchor tag
body: <p>I am new to HTML. I want the following to be done in html.</p>
  
  <pre><code>if(link is clicked) {
      process one form tag
  }
  else {
      some other form tag
  }
  
         this is my form tag . 
          &lt;form name="input" action="abc.pl" method="get" id="sel"&gt;
          &lt;input type="checkbox" name="vehicle" value="Bike"&gt;I have a bike&lt;br&gt;
           &lt;input type="checkbox" name="vehicle" value="Car"&gt;I have a car 
          &lt;/form&gt;
  </code></pre>
  
  <p>I want a link such that if i click on the link the above forms input(i mean the checkboxes value) should be taken and the link should process another .pl file in action ...</p>