0

I have a form with a text field where some text is entered and is sent across using the GET method. But instead of a traditional submit button I'm using an image and I want that to do the function of the submit button.

A simple <a href="file.php"><img src="image"></img></a> can make the image link to the next page but the value is obviously not sent with it (which im trying to send with GET method)

How do I do this?

Edited by asif49: n/a

3
Contributors
3
Replies
7
Views
6 Years
Discussion Span
Last Post by simplypixie
1

i made a working example for you...

<form method="get" action="example.php" name="myform" id="myform">
<input type="text">
<input type="submit" id="go" name="go" style="display: none">
<img src="http://s.ytimg.com/yt/favicon-vflZlzSbU.ico" onClick="go.click()"></img>
</form>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.