Reputation: 231
<form id="searchForm" onsubmit="return validsearch()" action="search.php" method="post" name="searchForm">
<input class="nnew_ttxtbx" type="text" name="searchf">
<input width="55" type="image" height="21" border="0" align="right" src="images/srch.png">
</form>
This is my code. Firefox shows the submit query for png img place, however, Chrome shows it correctly. What could be wrong?
Upvotes: 0
Views: 41
Reputation: 74036
Why don't you just use the regular <button>
tag?
<form id="searchForm" onsubmit="return validsearch()" action="search.php" method="post" name="searchForm">
<input class="nnew_ttxtbx" type="text" name="searchf">
<button type="submit" style="width: 55px; height: 21px; border: none;">
<img src="images/srch.png" />
</button>
</form>
Upvotes: 1