title: a form 2 buttons 1 dynamic value
body: <p>I have a form with 2 buttons, they have the same dynamic value which is coming from product id.<br>
  What I want is when you click on the cart button its sends to cart.php and when you click the wish button it sends to wish.php</p>
  
  <p>But now when I click the cart button it sends to cart.php <strong>and</strong> wish.php and vice versa.</p>
  
  <p>is there any such form, that will do what I want?</p>
  
  <pre><code>&lt;form id="form1" name="form1" method="post" &gt;                   
  
  &lt;input type="hidden" name="pid"  value="&lt;?php echo $id; ?&gt;" /&gt;  
  &lt;input type="hidden" name="pidwish"  value="&lt;?php echo $id; ?&gt;" /&gt;  
  &lt;input type="SUBMIT" name="submit"  class="classname"  VALUE="add to cart" onClick="this.form.action='cart.php';this.form.submit()"&gt;
  
  &lt;input type="SUBMIT" name="submit"  class="classname"  VALUE="wishlist" onClick="this.form.action='memberSystem/wishes.php';this.form.submit()"&gt;
  
  &lt;/form&gt;
  </code></pre>