Posted by andyhowlett on 02/10/07 17:28
On Feb 10, 5:00 pm, Michael Fesser <neti...@gmx.de> wrote:
> .oO(Iván Sánchez Ortega)
>
> >crater wrote:
>
> >> Is there a way to get an HTML form to be submitted (via POST) by using
> >> an image button instead of a submit button for instance?
>
> ><form action='foobar.php' method='post'>
> ><input type='image' src='foobar.png' />
> ></form>
>
> <input type='image' src='foobar.png' alt='submit' />
>
> Micha
Alternatively I think this might work (and for text etc. too):
<form action="file" method="post">
<input type="text" name="blah" />
</form>
<span onclick="javascript:document.forms[0].submit();">image, text or
whatever</span>
Navigation:
[Reply to this message]
|