MyBB Community Forums

Full Version: two image input in one form
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I have problem

<form action="submit.php" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<input type="hidden" name="pid" value="{$post[\'pid\']}" />
<input type="hidden" name="tid" value="{$post[\'tid\']}" />

// here in need two input buttons image

<input type="hidden" name="action" value="do_1" />
<input type="image" src="images/1.png" />

<input type="hidden" name="action" value="do_2" />
<input type="image" src="images/2.png" />
</form>

but it is obvious that always <input type="hidden" name="action" value="do_2" />
because it is the last, I don't wont use <button> tag

There is a chance to do this right?

Regards Smile