I have a form that has a Submit button as an image. When the user presses the image button, the image button should play the role of the submit button.
Code example:
<form action="page.php" method="POST"> <input type="image" name="btn_opentextbox" src="image.png" value="Submit" /> </form>
Handle Performance:
if($_POST['btn_opentextbox']) { //do something }
Surprisingly, the above code worked fine in Firefox. However, as soon as I updated my Firefox yesterday, it didn't work at all. I click the button, the page refreshes and nothing happens. The code also does not work in IE.
Note: it works in Chrome.
I want it to work in Firefox, IE, etc.
Any suggestions?
source share