Alex Rivera | Logout

How to make a submit out of a <a href...>...</a> link?

Asked 2008-11-08T18:54:03.273
60

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"...>?

Edit
Report

2 Answers

1

Dont forget the "BUTTON" element wich can handle some more HTML inside...

answered 2008-11-10T12:49:00.200
0

We replace the submit button with this all the time on forms:

<form method="post" action="whatever.asp">
<input type=...n

<input type="image" name="Submit" src="/graphics/continue.gif" align="middle" border="0" alt="Continue">
</form>

Clicking the image submits the form. Hope that helps!

answered 2013-01-18T22:15:46.020

Your Answer