title: html form - how to call different php pages based on the button selected
body: <p>Problem: How to make an HTML Form call different php pages from the action based on what button is pushed?</p>
  
  <p>The code below is the solution I have now, but I figure there must be a better way to do this then creating multiple forms on the page?</p>
  
  <pre><code>&lt;html&gt;  
  &lt;body&gt;
      &lt;form name="entry_form" action="entry_update_script.php" method="post" enctype="multipart/form-data"&gt;
          &lt;input type="hidden" name="entry_id" value=""&gt;
          &lt;input type="hidden" name="entry_item_id" value=""&gt;
          Truck/Railcar/Barge#:&lt;input type="text" name="pro_number" value=""&gt;&lt;br&gt;
          BOL #:&lt;input type="text" name="bol" value=""&gt;&lt;br&gt;
          &lt;input type="submit" name="entry_submit" value="Add New Entry!"&gt;
      &lt;/form&gt;
      &lt;form name="entry_form_add" action="entry_view.php" method="post" enctype="multipart/form-data"&gt;
          &lt;input type="hidden" name="entry_id" value=""&gt;
          &lt;input type="submit" name="submit" value="Add New Item!"&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>