I am trying to set-up a form that has 2 buttons, accept and deny. It doesn't seem to be working. Any thoughts on what I should fix?

```
   <form name="iform" method="post" onsubmit="" onreset="" enctype="multipart/form-data"    action="formapprovedeny" class="iform">

```

Form content here. 

```
   <input type="button" onclick="submitForm('html_form_approve.php')"      class="submit_button" value="Approved" name="Approved" />
   <input type="button" class="submit_button" onclick="submitForm('html_form_deny.php')" value="Denied" name="Denied" />

   </form>

```

Here is the script part.

```
     <script>
function submitForm(action)
{
    document.getElementById('formapprovedeny').action = action;
    document.getElementById('formapprovedeny').submit();
}
  </script>

```