Riparian Posted June 17, 2013 Share Posted June 17, 2013 Hi. Can someone give me a definitive answer to this question is this valid code in all browsers (or the majors anyway) to submit a form <input name="Process1" type="image" src="img/progress.png" /> A few years ago I had troubles with this method so I am wondering if it is acceptable now. Cheers and thanks Link to comment https://forums.phpfreaks.com/topic/279245-form-submit-with-image/ Share on other sites More sharing options...
PravinS Posted June 17, 2013 Share Posted June 17, 2013 you can use image tag instead of input tag and can submit using javascript <img src="img/progress.png" onclick="document.FORMNAME.submit();"> Link to comment https://forums.phpfreaks.com/topic/279245-form-submit-with-image/#findComment-1436318 Share on other sites More sharing options...
Zane Posted June 17, 2013 Share Posted June 17, 2013 Link to comment https://forums.phpfreaks.com/topic/279245-form-submit-with-image/#findComment-1436320 Share on other sites More sharing options...
Riparian Posted June 17, 2013 Author Share Posted June 17, 2013 Thank you Zane and Pravins..... much appreciated. Link to comment https://forums.phpfreaks.com/topic/279245-form-submit-with-image/#findComment-1436332 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.