0

Hi!

I would just like to know if its possible to give an linked image the ability to send the form instead of a submit button? Like in the example below:

<form method="post" action="Search.php">
            <table id="search">
                <tr>
                    <td>
                        Search:  <input type="text" name="search" id="search" placeholder="Search for friends"/><td><a href="Search.php" action="Search.php"><img src="graphics/search.png" id="search_pic"/></a></td>
                        <input type="submit" id="submit"/>
                    </td>
                </tr>
            <table>
        </form>

Because I don't want a submit button. I want to use the picture to send the forms data instead of the actual submit button.

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by Phillamon
0
<form method="post" action="search.php">
        <input id="Text1" type="text" />
        <input type="image" src="search.bmp" />
</form>

<input type='image'/> does the same as <input type='submit'/>

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.