I got an image with which links to another page using <a href="..."> <img ...> </a>
.
How can I make it make a post like if it was a button <input type="submit"...>
?
I got an image with which links to another page using <a href="..."> <img ...> </a>
.
How can I make it make a post like if it was a button <input type="submit"...>
?
It looks like you're trying to use an image to submit a form... in that case use
<input type="image" src="...">
If you really want to use an anchor then you have to use javascript:
<a href="#" onclick="document.forms['myFormName'].submit(); return false;">...</a>
Dont forget the "BUTTON" element wich can handle some more HTML inside...
More generic approatch using JQuery library closest() and submit() buttons. Here you do not have to specify whitch form you want to submit, submits the form it is in.
Untested / could be better:
input type=image will do it for you.