# Multi submit form href links/buttons

**URL:** <https://forum.kirupa.com/t/multi-submit-form-href-links-buttons/296518>\
**Category:** Uncategorized\
**Created:** [September 16, 2009, 1:17am UTC](https://forum.kirupa.com/t/multi-submit-form-href-links-buttons/296518 "2009-09-16T01:17:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyg3r](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tyg3r/32/1341_2.png) [@Tyg3r](https://forum.kirupa.com/u/Tyg3r)\
**Post date:** [September 16, 2009, 1:17am UTC](https://forum.kirupa.com/t/multi-submit-form-href-links-buttons/296518/1 "2009-09-16T01:17:41Z")

</div>

Hi,

Ok, I have a form which is displaying client confirmation information. I have two buttons; one to accept, and the other to decline.

When using traditional buttons, I can just include a “name”, and have my php do the rest.

For example:

```auto
<input type="submit" name="accept" value="Accept">
<input type="submit" name="decline" value="Decline">

```

The problem I’m having is that I don’t want to use a button. I want to use a href hyperlink. So naturally I tried to do it like this:

```auto
<a name="accept" href="javascript:confirmForm.submit()"> Accept </a>
<a name="decline" href="javascript:confirmForm.submit()">Decline</a>

```

But it’s just not working. How can I send that “name” variable into my submit function so that my action php file can pick it up?

I hope that makes sense, and that this thread is in the correct place.

Thanks,

Mark
